3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = function ($a) { return $a * 2; }; assert( true === is_callable($x) ); assert( 4 == $x(2) );

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.0040.01816.63
8.3.50.0070.00716.28
8.3.40.0180.00018.59
8.3.30.0070.01018.84
8.3.20.0070.00024.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.180.0040.01125.92
8.2.170.0180.00418.84
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0000.00826.16
8.2.120.0070.00026.35
8.2.110.0150.00620.17
8.2.100.0110.00018.03
8.2.90.0040.00420.42
8.2.80.0040.00419.66
8.2.70.0030.00617.63
8.2.60.0080.00017.80
8.2.50.0040.00418.05
8.2.40.0040.00717.99
8.2.30.0040.00418.11
8.2.20.0040.00417.98
8.2.10.0080.00019.25
8.2.00.0020.00519.24
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.81
8.1.230.0040.00820.85
8.1.220.0090.00017.74
8.1.210.0060.00319.15
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0070.00018.89
8.1.150.0050.00318.88
8.1.140.0040.00418.95
8.1.130.0040.00420.16
8.1.120.0080.00017.49
8.1.110.0000.00817.46
8.1.100.0000.00917.43
8.1.90.0040.00417.51
8.1.80.0040.00417.46
8.1.70.0000.00717.34
8.1.60.0040.00417.45
8.1.50.0030.00717.52
8.1.40.0040.00417.52
8.1.30.0000.00717.55
8.1.20.0080.00017.48
8.1.10.0030.00717.59
8.1.00.0000.00717.55
8.0.300.0000.00820.03
8.0.290.0030.00616.75
8.0.280.0040.00418.48
8.0.270.0070.00017.96
8.0.260.0070.00018.53
8.0.250.0000.00716.96
8.0.240.0040.00416.98
8.0.230.0000.00716.86
8.0.220.0070.00016.80
8.0.210.0000.00816.79
8.0.200.0070.00316.98
8.0.190.0000.00816.97
8.0.180.0070.00016.91
8.0.170.0090.00016.88
8.0.160.0040.00416.89
8.0.150.0000.00816.84
8.0.140.0030.00316.81
8.0.130.0000.00713.32
8.0.120.0050.00316.81
8.0.110.0000.00716.84
8.0.100.0000.00716.84
8.0.90.0040.00416.93
8.0.80.0120.00516.95
8.0.70.0050.00217.01
8.0.60.0000.00716.85
8.0.50.0000.00717.06
8.0.30.0070.00716.94
8.0.20.0120.00916.94
8.0.10.0070.00716.96
8.0.00.0070.01117.06
7.4.330.0040.00315.55
7.4.320.0070.00016.61
7.4.300.0060.00016.51
7.4.290.0040.00316.33
7.4.280.0040.00416.64
7.4.270.0070.00016.65
7.4.260.0020.00213.30
7.4.250.0000.00716.46
7.4.240.0030.00316.50
7.4.230.0000.00716.51
7.4.220.0020.00516.44
7.4.210.0110.00516.44
7.4.200.0040.00416.43
7.4.160.0150.00616.59
7.4.150.0100.01016.62
7.4.140.0130.00716.48
7.4.130.0000.01416.49
7.4.120.0100.00316.63
7.4.110.0000.01416.64
7.4.100.0100.00316.48
7.4.90.0070.01416.48
7.4.80.0040.01716.54
7.4.70.0110.00416.56
7.4.60.0060.01216.55
7.4.50.0060.01216.32
7.4.40.0140.00816.46
7.4.30.0150.00416.55
7.4.20.0100.00316.48
7.4.10.0030.01016.41
7.4.00.0170.00316.61
7.3.330.0020.00516.30
7.3.320.0000.00513.29
7.3.310.0030.00316.38
7.3.300.0040.00416.31
7.3.290.0090.01016.37
7.3.280.0070.01316.40
7.3.270.0130.00716.40
7.3.260.0100.01016.30
7.3.250.0000.01316.37
7.3.240.0140.00016.35
7.3.230.0030.01716.40
7.3.220.0070.01416.43
7.3.210.0200.00016.23
7.3.200.0070.00716.25
7.3.190.0080.00716.23
7.3.180.0090.00616.33
7.3.170.0150.00616.26
7.3.160.0120.00816.26
7.3.150.0070.00716.28
7.3.140.0040.01616.31
7.3.130.0140.00716.26
7.3.120.0070.01116.30
7.3.110.0110.00716.22
7.3.100.0050.01016.25
7.3.90.0060.01016.56
7.3.80.0070.00716.27
7.3.70.0090.00916.31
7.3.60.0070.01116.38
7.3.50.0100.01016.37
7.3.40.0030.01216.31
7.3.30.0140.00716.38
7.3.20.0080.00616.55
7.3.10.0090.01016.40
7.3.00.0100.00716.41

preferences:
66.98 ms | 401 KiB | 5 Q