3v4l.org

run code in 300+ PHP versions simultaneously
<?php function section(string $section): bool { if (empty($section) || !in_array($section, ['news', 'viewpoint'])) { return false; } return true; } var_dump(section('news'));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0090.00918.43
8.3.50.0110.00418.22
8.3.40.0160.00318.62
8.3.30.0110.00418.48
8.3.20.0040.00420.30
8.3.10.0000.00723.66
8.3.00.0080.00019.66
8.2.180.0070.00718.25
8.2.170.0110.00322.96
8.2.160.0070.00720.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00720.27
8.2.120.0040.00426.35
8.2.110.0070.00320.35
8.2.100.0090.00417.84
8.2.90.0080.00017.72
8.2.80.0070.00020.48
8.2.70.0080.00017.80
8.2.60.0090.00017.80
8.2.50.0020.00518.10
8.2.40.0030.00520.59
8.2.30.0060.00319.03
8.2.20.0020.00517.97
8.2.10.0040.00417.98
8.2.00.0070.00018.05
8.1.280.0110.00425.92
8.1.270.0040.00422.07
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.87
8.1.230.0110.00020.92
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0040.00417.23
8.1.190.0000.00817.43
8.1.180.0030.00518.10
8.1.170.0030.00518.71
8.1.160.0030.00518.75
8.1.150.0040.00420.25
8.1.140.0000.00717.63
8.1.130.0000.00718.95
8.1.120.0030.00317.39
8.1.110.0000.00717.27
8.1.100.0080.00017.37
8.1.90.0000.00717.41
8.1.80.0000.00717.39
8.1.70.0000.00717.27
8.1.60.0060.00617.55
8.1.50.0060.00317.45
8.1.40.0020.00517.44
8.1.30.0000.00717.47
8.1.20.0070.00017.59
8.1.10.0040.00417.39
8.1.00.0040.00417.35
8.0.300.0070.00020.21
8.0.290.0080.00016.75
8.0.280.0030.00318.25
8.0.270.0030.00317.20
8.0.260.0070.00016.75
8.0.250.0050.00316.88
8.0.240.0030.00616.93
8.0.230.0070.00316.77
8.0.220.0030.00316.88
8.0.210.0030.00316.72
8.0.200.0030.00316.77
8.0.190.0070.00016.89
8.0.180.0070.00016.84
8.0.170.0060.00316.71
8.0.160.0050.00216.82
8.0.150.0000.00716.71
8.0.140.0000.00816.67
8.0.130.0000.00613.30
8.0.120.0050.00316.82
8.0.110.0000.00716.60
8.0.100.0040.00416.71
8.0.90.0030.00316.69
8.0.80.0140.00416.81
8.0.70.0070.00016.82
8.0.60.0080.00016.93
8.0.50.0040.00416.77
8.0.30.0080.01117.16
8.0.20.0090.01017.40
8.0.10.0070.00017.02
8.0.00.0090.01116.64
7.4.330.0000.00515.55
7.4.320.0060.00016.43
7.4.300.0000.00616.33
7.4.290.0040.00416.52
7.4.280.0000.00716.45
7.4.270.0000.00816.49
7.4.260.0000.00716.52
7.4.250.0030.00616.50
7.4.240.0000.00816.43
7.4.230.0000.00716.33
7.4.220.0040.00416.41
7.4.210.0070.01316.54
7.4.200.0030.00316.63
7.4.160.0070.00916.52
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0090.00916.72
7.4.120.0070.01416.41
7.4.110.0070.01016.36
7.4.100.0070.01116.46
7.4.90.0060.01316.46
7.4.80.0130.00919.39
7.4.70.0080.01216.55
7.4.60.0080.00816.33
7.4.50.0030.01416.43
7.4.40.0090.00916.25
7.4.00.0070.01115.18
7.3.330.0050.00013.29
7.3.320.0060.00013.30
7.3.310.0030.00316.28
7.3.300.0000.00616.34
7.3.290.0080.00616.27
7.3.280.0080.00616.25
7.3.270.0190.00017.40
7.3.260.0120.01016.42
7.3.250.0090.00816.33
7.3.240.0100.00816.46
7.3.230.0070.01016.35
7.3.210.0070.01016.18
7.3.200.0160.00016.30
7.3.190.0100.00716.49
7.3.180.0040.01216.52
7.3.170.0060.01016.37
7.3.160.0090.00616.39
7.2.330.0100.00716.38
7.2.320.0030.01416.66
7.2.310.0030.01316.36
7.2.300.0090.01516.29
7.2.290.0110.00616.39
7.2.60.0070.00716.87
7.2.20.0110.01817.75
7.2.10.0090.01517.82
7.2.00.0200.01317.76
7.1.200.0060.00915.69
7.1.140.0120.01616.37
7.1.130.0200.00016.80
7.1.120.0220.00616.81
7.1.110.0150.00616.05
7.1.100.0160.01016.09
7.1.90.1070.00316.04
7.1.80.0120.00916.20
7.1.70.0250.00615.30
7.1.60.0260.00932.89
7.1.50.0220.01132.68
7.1.40.0370.00732.47
7.1.30.0240.01032.37
7.1.20.0330.02032.89
7.1.10.0100.01014.60
7.1.00.0120.00914.86

preferences:
35.09 ms | 400 KiB | 5 Q