3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wrapper = function(Closure $closure) { return $closure(); }; echo $wrapper(function(){ return 42;});

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.0110.00316.63
8.3.50.0100.00316.37
8.3.40.0120.00918.67
8.3.30.0090.00618.75
8.3.20.0070.00020.20
8.3.10.0000.00721.77
8.3.00.0040.00417.78
8.2.180.0140.00716.63
8.2.170.0130.00322.96
8.2.160.0100.00320.44
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00420.47
8.2.120.0000.00826.35
8.2.110.0070.00320.75
8.2.100.0120.00418.02
8.2.90.0000.00819.22
8.2.80.0000.00918.04
8.2.70.0030.00617.63
8.2.60.0000.00817.89
8.2.50.0000.00818.10
8.2.40.0030.00520.59
8.2.30.0080.00020.90
8.2.20.0030.00517.94
8.2.10.0060.00318.06
8.2.00.0000.00718.06
8.1.270.0000.00722.14
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0090.00023.92
8.1.230.0000.01118.72
8.1.220.0050.00217.78
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0050.00318.49
8.1.160.0000.00818.97
8.1.150.0080.00020.55
8.1.140.0050.00219.55
8.1.130.0050.00218.95
8.1.120.0000.00717.40
8.1.110.0000.00717.45
8.1.100.0000.00817.42
8.1.90.0030.00517.39
8.1.80.0040.00717.29
8.1.70.0000.00717.32
8.1.60.0030.00617.61
8.1.50.0060.00317.38
8.1.40.0000.00717.54
8.1.30.0060.00617.60
8.1.20.0030.00617.61
8.1.10.0000.00817.64
8.1.00.0040.00417.52
8.0.300.0080.00018.77
8.0.290.0070.00016.88
8.0.280.0000.00618.38
8.0.270.0020.00517.26
8.0.260.0030.00316.78
8.0.250.0000.00716.99
8.0.240.0100.00016.93
8.0.230.0040.00416.84
8.0.220.0000.00716.76
8.0.210.0030.00316.89
8.0.200.0000.00617.02
8.0.190.0050.00316.92
8.0.180.0050.00316.95
8.0.170.0040.00416.91
8.0.160.0030.00316.98
8.0.150.0070.00016.82
8.0.140.0030.00316.79
8.0.130.0030.00313.26
8.0.120.0050.00316.91
8.0.110.0000.00816.80
8.0.100.0000.00716.81
8.0.90.0050.00316.81
8.0.80.0040.01216.91
8.0.70.0040.00416.96
8.0.60.0040.00416.74
8.0.50.0000.00816.99
8.0.30.0070.01317.21
8.0.20.0110.00817.40
8.0.10.0000.00717.01
8.0.00.0090.00917.04
7.4.330.0050.00015.55
7.4.320.0030.00316.64
7.4.300.0060.00016.50
7.4.290.0070.00016.61
7.4.280.0050.00316.49
7.4.270.0000.00816.60
7.4.260.0030.00316.50
7.4.250.0000.00716.61
7.4.240.0070.00016.49
7.4.230.0000.00716.52
7.4.220.0120.00616.58
7.4.210.0100.01016.43
7.4.200.0030.00516.60
7.4.160.0080.01116.46
7.4.150.0100.00717.40
7.4.140.0100.00917.86
7.4.130.0090.01216.55
7.4.120.0080.01116.47
7.4.110.0060.01616.35
7.4.100.0060.01316.40
7.4.90.0130.00316.45
7.4.80.0070.01019.39
7.4.70.0040.01216.44
7.4.60.0130.00316.37
7.4.50.0030.00916.61
7.4.40.0060.01016.66
7.4.30.0110.00616.60
7.4.00.0030.00914.94
7.3.330.0000.00613.16
7.3.320.0000.00513.10
7.3.310.0060.00316.19
7.3.300.0000.00816.28
7.3.290.0100.00716.24
7.3.280.0090.00816.19
7.3.270.0100.00717.40
7.3.260.0070.01016.41
7.3.250.0110.01016.20
7.3.240.0100.00816.21
7.3.230.0090.00916.17
7.3.210.0060.01316.25
7.3.200.0030.01316.31
7.3.190.0080.00816.25
7.3.180.0090.01216.23
7.3.170.0110.00516.50
7.3.160.0050.01116.21
7.2.330.0110.01116.71
7.2.320.0130.01016.57
7.2.310.0160.00016.50
7.2.300.0090.00916.43
7.2.290.0110.01116.58
7.2.60.0040.00816.70
7.2.00.0080.00519.47
7.1.200.0090.00315.45
7.1.100.0160.01216.14
7.1.70.0100.00416.70
7.1.60.0220.01134.93
7.1.50.0200.01734.63
7.1.40.0170.01334.24
7.1.30.0220.01334.38
7.1.20.0270.00734.47
7.1.10.0100.00716.38
7.1.00.0040.01216.44
7.0.200.0070.00716.84
7.0.190.0000.01616.67
7.0.180.0030.01016.07
7.0.170.0000.01616.21
7.0.160.0060.01116.39
7.0.150.0060.00916.20
7.0.140.0070.00616.28
7.0.130.0070.01016.37
7.0.120.0050.01116.41
7.0.110.0030.00916.14
7.0.100.0080.00616.36
7.0.90.0000.01716.27
7.0.80.0080.00516.46
7.0.70.0030.01016.16
7.0.60.0030.01416.03
7.0.50.0060.01116.11
7.0.40.0060.00916.38
7.0.30.0060.00816.25
7.0.20.0100.00716.20
7.0.10.0100.01716.33
7.0.00.0130.01416.21

preferences:
61.32 ms | 400 KiB | 5 Q