3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($id) { if ($id (is_numeric($id) || $id === 'pass')) { return true; } return false; } // this error is a lot more obvious: var_dump(test('1')); var_dump(test(null));

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.39
8.3.50.0000.01518.33
8.3.40.0110.00318.70
8.3.30.0070.00718.56
8.3.20.0040.00419.22
8.3.10.0000.00821.81
8.3.00.0070.00020.63
8.2.180.0100.01018.41
8.2.170.0110.00422.96
8.2.160.0070.00722.15
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.11
8.2.110.0060.00319.02
8.2.100.0130.00317.72
8.2.90.0030.00617.75
8.2.80.0060.00317.97
8.2.70.0080.00018.04
8.2.60.0000.00718.16
8.2.50.0040.00418.10
8.2.40.0060.00319.41
8.2.30.0070.00019.19
8.2.20.0000.00818.09
8.2.10.0060.00317.98
8.2.00.0040.00417.56
8.1.280.0090.00625.92
8.1.270.0080.00020.37
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00422.20
8.1.230.0060.00622.13
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0080.00417.23
8.1.190.0100.00017.23
8.1.180.0070.00018.10
8.1.170.0000.00818.65
8.1.160.0040.00418.67
8.1.150.0000.00818.66
8.1.140.0000.00822.04
8.1.130.0030.00320.26
8.1.120.0040.00317.24
8.1.110.0040.00417.32
8.1.100.0030.00417.33
8.1.90.0030.00517.30
8.1.80.0000.00717.28
8.1.70.0050.00317.32
8.1.60.0040.00417.57
8.1.50.0070.00017.46
8.1.40.0030.00517.48
8.1.30.0000.00917.49
8.1.20.0040.00417.63
8.1.10.0050.00217.54
8.1.00.0060.00317.36
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.46
8.0.270.0000.00717.13
8.0.260.0050.00218.43
8.0.250.0030.00316.84
8.0.240.0030.00316.93
8.0.230.0000.00816.92
8.0.220.0000.00716.90
8.0.210.0000.00716.77
8.0.200.0070.00016.93
8.0.190.0000.00717.00
8.0.180.0030.00516.88
8.0.170.0030.00616.91
8.0.160.0040.00416.92
8.0.150.0040.00416.82
8.0.140.0040.00416.84
8.0.130.0030.00313.24
8.0.120.0040.00416.71
8.0.110.0070.00016.93
8.0.100.0050.00316.92
8.0.90.0000.00716.84
8.0.80.0100.00616.81
8.0.70.0050.00216.84
8.0.60.0000.00716.78
8.0.50.0040.00416.76
8.0.30.0090.00917.07
8.0.20.0120.00617.40
8.0.10.0000.00716.82
8.0.00.0180.00516.70
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0030.00316.48
7.4.290.0030.00316.52
7.4.280.0030.00716.47
7.4.270.0070.00016.59
7.4.260.0070.00016.58
7.4.250.0000.00716.50
7.4.240.0030.00516.61
7.4.230.0030.00316.59
7.4.220.0040.00416.60
7.4.210.0050.01216.60
7.4.200.0040.00416.38
7.4.160.0080.00916.44
7.4.140.0100.00817.86
7.4.130.0120.00616.46
7.4.120.0120.00616.47
7.4.110.0120.00916.45
7.4.100.0220.00016.47
7.4.90.0120.00616.45
7.4.80.0090.01319.39
7.4.70.0140.00416.56
7.4.60.0110.00416.38
7.4.50.0100.00316.38
7.4.40.0120.00916.38
7.4.00.0100.00614.90
7.3.330.0030.00213.15
7.3.320.0000.00513.25
7.3.310.0030.00616.18
7.3.300.0030.00316.33
7.3.290.0030.00316.29
7.3.280.0090.01216.26
7.3.260.0140.00716.39
7.3.240.0140.00716.34
7.3.230.0080.00816.39
7.3.210.0090.00616.24
7.3.200.0090.00616.40
7.3.190.0040.01716.25
7.3.180.0090.00916.46
7.3.170.0170.00616.38
7.3.160.0030.01316.43
7.3.10.0040.00916.45
7.3.00.0000.01516.41
7.2.330.0090.00916.66
7.2.320.0160.00616.43
7.2.310.0110.00716.52
7.2.300.0030.01316.31
7.2.290.0070.01016.27
7.2.130.0100.00316.43
7.2.120.0110.00416.57
7.2.110.0350.00115.64
7.2.100.0270.01215.67
7.2.90.0370.00315.64
7.2.80.0090.01215.63
7.2.70.0360.00815.77
7.2.60.0330.00415.88
7.2.50.0340.00415.62
7.2.40.0370.00415.86
7.2.30.0470.00615.65
7.2.20.0490.00515.76
7.2.10.0230.00515.73
7.2.00.0340.00715.65
7.1.250.0040.00815.38
7.1.230.0620.01013.78
7.1.220.0990.00313.67
7.1.210.0650.00313.65
7.1.200.0200.00713.75
7.1.190.0840.01313.69
7.1.180.0590.00913.55
7.1.170.0590.00313.54
7.1.160.0810.01113.37
7.1.150.0850.00713.55
7.1.140.0700.00313.64
7.1.130.0840.00713.81
7.1.120.0590.01013.96
7.1.110.0700.00313.78
7.1.100.0680.00713.89
7.1.90.0600.00713.88
7.1.80.0640.01213.96
7.1.70.0650.01313.99
7.1.60.0910.00731.86
7.1.50.1360.00631.93
7.1.40.1090.00731.64
7.1.30.1170.00331.73
7.1.20.1010.01031.78
7.1.10.0960.00313.55
7.1.00.0160.00713.66
5.6.380.0090.00313.82

preferences:
58.63 ms | 401 KiB | 5 Q