3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function() use (&$foo){ return $foo;}; var_dump($foo === $foo()); // make this output 'bool(true)'

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.0150.00016.38
8.3.50.0100.01017.96
8.3.40.0120.00318.67
8.3.30.0160.00618.67
8.3.20.0030.00620.16
8.3.10.0040.00423.61
8.3.00.0000.00919.79
8.2.180.0110.00316.50
8.2.170.0040.01122.96
8.2.160.0110.01119.16
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00320.99
8.2.120.0030.00626.35
8.2.110.0000.00922.11
8.2.100.0070.00417.78
8.2.90.0080.00019.11
8.2.80.0000.00818.05
8.2.70.0030.00617.63
8.2.60.0050.00318.03
8.2.50.0040.00418.10
8.2.40.0040.00420.54
8.2.30.0040.00419.18
8.2.20.0040.00418.04
8.2.10.0080.00017.99
8.2.00.0070.00018.02
8.1.280.0170.00325.92
8.1.270.0080.00022.19
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00320.85
8.1.230.0040.00719.10
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0030.00620.25
8.1.160.0040.00419.02
8.1.150.0000.00718.85
8.1.140.0070.00019.57
8.1.130.0030.00318.90
8.1.120.0000.00717.51
8.1.110.0030.00617.41
8.1.100.0050.00317.40
8.1.90.0030.00517.46
8.1.80.0000.00717.43
8.1.70.0030.00317.36
8.1.60.0080.00017.57
8.1.50.0040.00417.41
8.1.40.0050.00517.47
8.1.30.0040.00417.55
8.1.20.0040.00417.52
8.1.10.0040.00417.55
8.1.00.0000.00717.43
8.0.300.0060.00318.77
8.0.290.0050.00316.63
8.0.280.0030.00318.43
8.0.270.0030.00317.14
8.0.260.0030.00318.93
8.0.250.0040.00417.00
8.0.240.0000.00816.97
8.0.230.0030.00616.91
8.0.220.0020.00516.92
8.0.210.0040.00416.91
8.0.200.0000.00716.93
8.0.190.0020.00516.84
8.0.180.0000.00716.93
8.0.170.0040.00416.80
8.0.160.0030.00316.90
8.0.150.0040.00416.78
8.0.140.0000.00716.86
8.0.130.0030.00313.25
8.0.120.0000.00816.91
8.0.110.0080.00016.95
8.0.100.0000.00716.72
8.0.90.0050.00216.89
8.0.80.0070.00916.92
8.0.70.0040.00416.76
8.0.60.0070.00016.69
8.0.50.0040.00416.86
8.0.30.0120.00917.04
8.0.20.0100.01017.40
8.0.10.0070.00017.03
8.0.00.0130.00316.95
7.4.330.0000.00515.55
7.4.320.0000.00616.51
7.4.300.0070.00416.57
7.4.290.0040.00416.61
7.4.280.0050.00316.63
7.4.270.0070.00016.43
7.4.260.0040.00416.63
7.4.250.0040.00416.46
7.4.240.0000.00716.51
7.4.230.0030.00316.70
7.4.220.0070.01116.39
7.4.210.0110.00416.59
7.4.200.0070.00016.32
7.4.160.0060.00916.51
7.4.150.0110.00617.40
7.4.140.0120.00917.86
7.4.130.0130.00716.35
7.4.120.0100.00816.49
7.4.110.0100.00716.65
7.4.100.0060.01216.49
7.4.90.0030.01616.39
7.4.80.0060.01519.39
7.4.70.0130.00416.38
7.4.60.0120.00916.57
7.4.50.0100.00716.39
7.4.40.0100.00616.43
7.4.30.0060.00916.55
7.4.00.0050.00514.63
7.3.330.0070.00013.36
7.3.320.0030.00313.19
7.3.310.0040.00416.47
7.3.300.0070.00016.37
7.3.290.0030.00316.18
7.3.280.0070.00916.35
7.3.270.0160.00517.40
7.3.260.0170.01116.37
7.3.250.0150.00516.44
7.3.240.0110.00816.52
7.3.230.0120.00416.54
7.3.210.0070.01016.42
7.3.200.0120.00916.75
7.3.190.0070.01016.36
7.3.180.0070.01016.44
7.3.170.0100.01016.64
7.3.160.0150.00316.68
7.2.330.0100.00616.49
7.2.320.0070.01016.48
7.2.310.0130.00316.48
7.2.300.0190.00016.63
7.2.290.0120.00416.69
7.2.60.0000.01016.64
7.2.50.0100.00316.95
7.1.200.0080.00415.72
7.1.70.0040.00816.97
7.1.60.0000.01516.95
7.1.50.0070.01416.89
7.1.40.0060.01216.52
7.1.30.0060.01616.58
7.1.20.0070.01716.80
7.1.10.0030.00616.72
7.1.00.0030.00816.75
7.0.200.0040.00416.72
7.0.190.0030.01216.75
7.0.180.0060.00316.24
7.0.170.0070.01016.20
7.0.160.0030.01216.30
7.0.150.0020.00516.34
7.0.140.0040.00416.39
7.0.130.0070.00016.41
7.0.120.0000.00816.56
7.0.110.0000.00816.52
7.0.100.0030.00516.42
7.0.90.0030.00616.14
7.0.80.0030.01016.35
7.0.70.0000.00816.40
7.0.60.0040.00416.25
7.0.50.0030.00616.28
7.0.40.0040.00414.76
7.0.30.0050.00314.76
7.0.20.0000.01014.76
7.0.10.0000.00914.76
7.0.00.0000.01114.76

preferences:
58.18 ms | 400 KiB | 5 Q