3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($id = null) { if (!$id) { return false; } $getArg = $id; if ($getArg (is_numeric($getArg) || $getArg === 'test')) { return true; } return false; } var_dump(test('1'));

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.70.0150.00716.63
8.3.60.0120.00918.56
8.3.50.0000.01518.04
8.3.40.0070.00718.97
8.3.30.0120.00318.70
8.3.20.0070.00019.29
8.3.10.0020.00521.81
8.3.00.0040.00420.69
8.2.180.0110.01118.29
8.2.170.0100.01022.96
8.2.160.0070.00722.12
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0060.00620.75
8.2.100.0070.00418.03
8.2.90.0040.00417.63
8.2.80.0060.00319.03
8.2.70.0000.00917.80
8.2.60.0000.00818.21
8.2.50.0050.00318.10
8.2.40.0020.00519.34
8.2.30.0040.00419.16
8.2.20.0040.00417.93
8.2.10.0000.00818.04
8.2.00.0080.00017.61
8.1.280.0060.01025.92
8.1.270.0040.00420.71
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0050.00521.84
8.1.230.0100.00019.05
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00517.23
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0000.00718.80
8.1.150.0040.00418.76
8.1.140.0000.00722.18
8.1.130.0060.00020.37
8.1.120.0000.00817.35
8.1.110.0070.00017.46
8.1.100.0040.00417.39
8.1.90.0000.00817.49
8.1.80.0000.00817.34
8.1.70.0000.00717.48
8.1.60.0000.00817.54
8.1.50.0040.00417.52
8.1.40.0030.00517.57
8.1.30.0040.00417.64
8.1.20.0080.00017.61
8.1.10.0040.00417.49
8.1.00.0050.00217.50
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0070.00018.45
8.0.270.0040.00416.88
8.0.260.0030.00318.48
8.0.250.0000.00716.98
8.0.240.0000.00617.02
8.0.230.0030.00617.07
8.0.220.0080.00016.83
8.0.210.0000.00716.84
8.0.200.0000.00616.87
8.0.190.0020.00517.02
8.0.180.0050.00317.00
8.0.170.0040.00417.03
8.0.160.0040.00416.94
8.0.150.0000.00816.98
8.0.140.0000.00716.85
8.0.130.0030.00313.32
8.0.120.0040.00416.78
8.0.110.0040.00416.85
8.0.100.0050.00216.73
8.0.90.0040.00416.95
8.0.80.0060.00816.95
8.0.70.0000.00717.02
8.0.60.0080.00016.94
8.0.50.0040.00416.90
8.0.30.0140.00417.12
8.0.20.0150.00617.40
8.0.10.0040.00416.96
8.0.00.0100.01016.80
7.4.330.0060.00015.55
7.4.320.0030.00316.61
7.4.300.0000.00616.42
7.4.290.0020.00516.49
7.4.280.0060.00316.54
7.4.270.0040.00416.55
7.4.260.0000.00716.44
7.4.250.0000.00716.47
7.4.240.0070.00016.48
7.4.230.0000.00716.51
7.4.220.0030.00616.36
7.4.210.0070.00716.44
7.4.200.0030.00316.60
7.4.160.0090.00716.47
7.4.140.0130.00717.86
7.4.130.0100.00716.55
7.4.120.0110.00716.53
7.4.110.0160.00616.69
7.4.100.0070.01516.70
7.4.90.0100.01016.61
7.4.80.0080.00919.39
7.4.70.0090.00616.43
7.4.60.0110.00416.53
7.4.50.0000.01516.70
7.4.40.0120.00316.64
7.4.00.0000.01515.04
7.3.330.0050.00013.23
7.3.320.0060.00013.32
7.3.310.0030.00616.45
7.3.300.0030.00316.32
7.3.290.0000.00716.21
7.3.280.0120.00616.34
7.3.260.0080.01316.50
7.3.240.0060.01216.42
7.3.230.0130.00416.61
7.3.210.0000.01816.35
7.3.200.0130.01016.32
7.3.190.0090.00916.54
7.3.180.0160.00016.44
7.3.170.0090.01016.48
7.3.160.0090.00916.27
7.2.330.0040.01416.49
7.2.320.0060.01216.71
7.2.310.0100.00716.35
7.2.300.0000.01716.54
7.2.290.0100.01316.36
7.2.110.0710.00714.57
7.2.100.0660.00714.65
7.2.90.0680.01114.09
7.2.80.0700.00614.31
7.2.70.0790.00614.80
7.2.60.0780.01014.82
7.2.50.0200.00614.83
7.2.40.0820.00614.74
7.2.30.0690.00914.42
7.2.20.0650.01214.30
7.2.10.1060.00314.84
7.2.00.0550.01314.61
7.1.230.0560.01313.91
7.1.220.0660.00313.89
7.1.210.0270.00313.94
7.1.200.0700.00613.60
7.1.190.1010.00713.77
7.1.180.0520.00913.89
7.1.170.0200.00613.61
7.1.160.1230.00313.54
7.1.150.0720.00613.31
7.1.140.0730.00713.80
7.1.130.0730.00013.62
7.1.120.0700.00313.64
7.1.110.0590.01013.95
7.1.100.0670.00713.78
7.1.90.0700.00613.75
7.1.80.0640.01413.75
7.1.70.0580.00713.66
7.1.60.0770.00631.84
7.1.50.0900.01731.54
7.1.40.0930.01431.41
7.1.30.1030.00031.65
7.1.20.1540.02031.68
7.1.10.1410.00313.84
7.1.00.0760.00313.50
5.6.380.0070.00714.49

preferences:
72.6 ms | 400 KiB | 5 Q