3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = 123; $one = function() use($bar){ echo $bar . "\n"; }; $two = function() use(&$bar){ echo $bar; }; $bar = 456; $one(); $two();

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.00416.63
8.3.60.0040.01118.30
8.3.50.0150.00517.33
8.3.40.0070.01118.65
8.3.30.0060.00918.85
8.3.20.0050.00320.71
8.3.10.0080.00021.91
8.3.00.0070.00023.48
8.2.190.0000.01516.58
8.2.180.0110.00816.75
8.2.170.0110.00322.96
8.2.160.0030.01020.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0050.00522.20
8.2.100.0060.00617.78
8.2.90.0040.00417.63
8.2.80.0000.00817.97
8.2.70.0060.00317.79
8.2.60.0040.00418.22
8.2.50.0030.00518.10
8.2.40.0070.00320.67
8.2.30.0000.00819.16
8.2.20.0000.00717.93
8.2.10.0000.00719.23
8.2.00.0070.00019.22
8.1.280.0070.00725.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0140.00720.81
8.1.230.0070.00418.95
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0030.00917.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0000.00818.65
8.1.160.0000.00718.87
8.1.150.0030.00518.97
8.1.140.0040.00418.89
8.1.130.0030.00320.08
8.1.120.0030.00517.44
8.1.110.0050.00317.50
8.1.100.0040.00417.47
8.1.90.0000.00717.45
8.1.80.0060.00317.44
8.1.70.0000.00817.47
8.1.60.0000.00717.59
8.1.50.0060.00317.45
8.1.40.0000.00817.56
8.1.30.0040.00417.55
8.1.20.0000.01117.48
8.1.10.0070.00017.60
8.1.00.0000.00817.35
8.0.300.0060.00319.58
8.0.290.0030.00516.75
8.0.280.0000.00718.37
8.0.270.0040.00417.21
8.0.260.0000.00618.50
8.0.250.0060.00016.89
8.0.240.0030.00316.92
8.0.230.0080.00016.83
8.0.220.0000.00716.95
8.0.210.0000.00716.85
8.0.200.0030.00316.86
8.0.190.0040.00416.96
8.0.180.0040.00316.94
8.0.170.0040.00416.96
8.0.160.0050.00216.90
8.0.150.0030.00316.84
8.0.140.0030.00316.87
8.0.130.0050.00013.30
8.0.120.0040.00416.82
8.0.110.0000.00816.75
8.0.100.0000.00716.75
8.0.90.0000.00716.72
8.0.80.0090.00916.84
8.0.70.0050.00216.84
8.0.60.0040.00416.67
8.0.50.0000.00816.81
8.0.30.0050.01217.05
8.0.20.0170.00317.04
8.0.10.0040.00416.89
8.0.00.0100.01016.86
7.4.330.0030.00315.55
7.4.320.0030.00316.53
7.4.300.0060.00016.55
7.4.290.0050.00516.58
7.4.280.0060.00316.59
7.4.270.0000.00816.61
7.4.260.0040.00416.55
7.4.250.0000.00716.39
7.4.240.0030.00316.53
7.4.230.0030.00316.60
7.4.220.0000.00816.25
7.4.210.0070.00916.51
7.4.200.0020.00516.60
7.4.160.0100.00716.39
7.4.130.0070.01016.41
7.4.120.0170.00716.57
7.4.110.0110.00716.57
7.4.100.0150.00616.50
7.4.90.0100.00716.51
7.4.80.0090.01319.39
7.4.70.0070.01016.43
7.4.60.0070.01016.65
7.4.50.0070.01016.45
7.4.40.0040.01316.54
7.4.00.0040.00415.04
7.3.330.0060.00013.26
7.3.320.0000.00613.38
7.3.310.0070.00016.29
7.3.300.0000.00716.30
7.3.290.0060.00816.29
7.3.280.0100.00816.23
7.3.260.0120.00616.51
7.3.240.0090.00816.54
7.3.230.0050.01116.32
7.3.210.0170.00016.65
7.3.200.0090.00616.34
7.3.190.0130.00316.33
7.3.180.0110.00616.28
7.3.170.0130.01016.48
7.3.160.0100.00716.38
7.3.120.0000.01314.86
7.3.110.0030.00914.44
7.3.100.0000.01114.63
7.3.90.0100.00314.78
7.3.80.0070.00714.54
7.3.70.0070.00714.67
7.3.60.0080.00614.71
7.3.50.0040.00714.63
7.3.40.0070.00914.59
7.3.30.0070.00514.74
7.3.20.0060.01115.58
7.3.10.0140.00815.69
7.3.00.0090.00515.50
7.2.330.0070.01116.64
7.2.320.0060.01516.44
7.2.310.0140.00716.63
7.2.300.0130.00916.77
7.2.290.0080.00816.32
7.2.240.0080.00314.86
7.2.230.0060.01015.20
7.2.220.0000.01114.70
7.2.210.0060.00914.80
7.2.200.0080.00414.89
7.2.190.0080.00714.77
7.2.180.0050.00814.88
7.2.170.0050.00814.70
7.2.160.0050.01414.79
7.2.150.0090.00515.61
7.2.140.0100.00815.89
7.2.130.0080.00415.83
7.2.120.0090.00515.73
7.2.110.0140.00615.94
7.2.100.0110.00315.97
7.2.90.0080.00815.88
7.2.80.0130.00816.05
7.2.70.0120.00515.76
7.2.60.0070.01016.02
7.2.50.0250.00615.74
7.2.40.0120.00916.02
7.2.30.0090.00615.86
7.2.20.0070.00715.74
7.2.10.0110.00215.80
7.2.00.0090.01215.84
7.1.330.0070.00715.64
7.1.320.0040.01115.98
7.1.310.0070.00415.41
7.1.300.0080.00714.61
7.1.290.0430.01114.65
7.1.280.0090.00814.70
7.1.270.0110.00614.69
7.1.260.0050.00714.83
7.1.250.0050.01014.78

preferences:
68.44 ms | 401 KiB | 5 Q