3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function () { return "hello"; }; echo gettype($f); echo get_class($f); var_dump(function() { return "Hello World!"; } instanceof \Closure);

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.0070.01418.30
8.3.50.0110.00417.88
8.3.40.0030.01718.65
8.3.30.0140.00318.63
8.3.20.0040.00421.90
8.3.10.0070.00023.65
8.3.00.0000.00819.56
8.2.180.0070.01118.29
8.2.170.0070.00722.96
8.2.160.0030.01020.40
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00620.72
8.2.120.0040.00426.35
8.2.110.0060.00319.46
8.2.100.0110.00017.85
8.2.90.0090.00017.84
8.2.80.0070.00018.16
8.2.70.0080.00017.93
8.2.60.0000.00817.80
8.2.50.0090.00018.16
8.2.40.0040.00420.34
8.2.30.0030.00619.44
8.2.20.0040.00418.00
8.2.10.0040.00418.11
8.2.00.0050.00218.13
8.1.280.0070.01025.92
8.1.270.0050.00323.87
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00422.41
8.1.230.0040.00820.95
8.1.220.0000.00817.74
8.1.210.0060.00618.77
8.1.200.0030.00617.36
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0030.00618.59
8.1.160.0050.00318.80
8.1.150.0040.00419.06
8.1.140.0080.00017.61
8.1.130.0000.00719.01
8.1.120.0030.00617.52
8.1.110.0030.00617.50
8.1.100.0000.00717.46
8.1.90.0000.00717.41
8.1.80.0070.00017.48
8.1.70.0030.00317.47
8.1.60.0060.00317.63
8.1.50.0080.00017.53
8.1.40.0040.00417.52
8.1.30.0080.00017.62
8.1.20.0000.00817.54
8.1.10.0040.00417.51
8.1.00.0000.00817.34
8.0.300.0040.00420.08
8.0.290.0050.00316.63
8.0.280.0050.00318.48
8.0.270.0030.00317.36
8.0.260.0040.00419.04
8.0.250.0000.00916.84
8.0.240.0060.00316.91
8.0.230.0050.00216.88
8.0.220.0070.00016.82
8.0.210.0030.00316.86
8.0.200.0000.00716.84
8.0.190.0040.00416.96
8.0.180.0040.00416.80
8.0.170.0030.00616.94
8.0.160.0050.00316.91
8.0.150.0040.00416.93
8.0.140.0030.00316.72
8.0.130.0090.00013.30
8.0.120.0000.00716.90
8.0.110.0040.00416.91
8.0.100.0080.00016.93
8.0.90.0080.00016.77
8.0.80.0150.00016.87
8.0.70.0040.00416.85
8.0.60.0000.00716.76
8.0.50.0000.00716.77
8.0.30.0090.01116.96
8.0.20.0150.00817.40
8.0.10.0040.00417.07
8.0.00.0130.00516.69
7.4.330.0000.00415.55
7.4.320.0070.00016.59
7.4.300.0070.00016.57
7.4.290.0040.00416.59
7.4.280.0000.00816.54
7.4.270.0000.00716.59
7.4.260.0050.00216.48
7.4.250.0000.00716.54
7.4.240.0000.00716.59
7.4.230.0030.00316.57
7.4.220.0030.00516.70
7.4.210.0040.01216.54
7.4.200.0000.00716.51
7.4.160.0080.00916.48
7.4.140.0140.00517.86
7.4.130.0120.00616.54
7.4.120.0120.00916.57
7.4.110.0080.00816.44
7.4.100.0070.01616.55
7.4.90.0100.00616.49
7.4.80.0100.01019.39
7.4.70.0140.00316.58
7.4.60.0090.00616.39
7.4.50.0070.01016.34
7.4.40.0050.01116.54
7.4.00.0100.00715.04
7.3.330.0000.00613.36
7.3.320.0000.00613.14
7.3.310.0040.00416.39
7.3.300.0000.00716.36
7.3.290.0060.00016.23
7.3.280.0060.01016.31
7.3.260.0110.00616.38
7.3.240.0090.01016.50
7.3.230.0060.01216.59
7.3.210.0060.01216.23
7.3.200.0100.01016.53
7.3.190.0030.01316.64
7.3.180.0130.00616.61
7.3.170.0090.01316.65
7.3.160.0060.00916.41
7.2.330.0130.01016.50
7.2.320.0090.00916.70
7.2.310.0000.01716.64
7.2.300.0100.00716.55
7.2.290.0130.00316.37
7.2.60.0030.01017.00
7.2.50.0060.00616.95
7.2.40.1700.01217.94
7.2.30.0660.01617.92
7.2.20.0490.01218.04
7.2.10.0670.01217.73
7.2.00.0690.01417.99
7.1.200.0030.00915.51
7.1.160.0660.01316.88
7.1.150.0910.01416.59
7.1.140.0660.01516.71
7.1.130.0640.01516.38
7.1.120.0620.01116.35
7.1.110.0650.01515.91
7.1.100.0640.00916.13
7.1.90.0450.01216.02
7.1.80.0600.00616.00
7.1.70.0470.00915.14
7.1.60.0790.01632.91
7.1.50.0740.01932.88
7.1.40.0800.01932.71
7.1.30.0870.01332.44
7.1.20.0870.01932.57
7.1.10.0640.01014.82
7.1.00.0610.01515.06

preferences:
49.1 ms | 401 KiB | 5 Q