3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = 1; $func = (function ($foo) use ($bar) : bool { return $foo === $bar; }); var_dump($func(1)); var_dump($func(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.40.0110.00418.83
8.3.30.0110.00418.71
8.3.20.0050.00220.31
8.3.10.0040.00421.60
8.3.00.0080.00019.38
8.2.170.0100.00322.96
8.2.160.0100.00321.91
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00919.36
8.2.120.0070.00026.35
8.2.110.0100.00021.12
8.2.100.0040.00817.93
8.2.90.0000.00919.08
8.2.80.0000.00817.97
8.2.70.0040.00717.50
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0070.00019.38
8.2.30.0040.00420.52
8.2.20.0090.00017.56
8.2.10.0040.00418.07
8.2.00.0040.00417.98
8.1.270.0000.00922.09
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0100.00019.21
8.1.230.0110.00017.66
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0050.00517.25
8.1.190.0030.00517.23
8.1.180.0000.00718.10
8.1.170.0040.00718.46
8.1.160.0070.00022.02
8.1.150.0050.00218.79
8.1.140.0000.00819.44
8.1.130.0030.00617.76
8.1.120.0030.00317.51
8.1.110.0000.00717.43
8.1.100.0080.00017.34
8.1.90.0040.00417.46
8.1.80.0040.00417.45
8.1.70.0000.00717.33
8.1.60.0000.00817.61
8.1.50.0090.00017.42
8.1.40.0000.00817.56
8.1.30.0040.00417.70
8.1.20.0000.00817.57
8.1.10.0000.00717.43
8.1.00.0030.00617.49
8.0.300.0020.00518.77
8.0.290.0070.00016.63
8.0.280.0030.00318.38
8.0.270.0040.00417.24
8.0.260.0070.00017.25
8.0.250.0040.00416.86
8.0.240.0000.00816.94
8.0.230.0040.00416.91
8.0.220.0030.00316.95
8.0.210.0000.00816.77
8.0.200.0000.00616.82
8.0.190.0050.00216.91
8.0.180.0080.00016.80
8.0.170.0060.00616.91
8.0.160.0060.00316.88
8.0.150.0060.00316.76
8.0.140.0030.00716.88
8.0.130.0000.00813.27
8.0.120.0040.00416.83
8.0.110.0030.00516.86
8.0.100.0070.00016.88
8.0.90.0040.00416.75
8.0.80.0040.01116.81
8.0.70.0070.00016.83
8.0.60.0070.00016.84
8.0.50.0070.00016.87
8.0.30.0120.00717.19
8.0.20.0070.01117.40
8.0.10.0040.00417.04
8.0.00.0090.01016.72
7.4.330.0050.00016.75
7.4.320.0060.00016.52
7.4.300.0000.00716.50
7.4.290.0040.00416.60
7.4.280.0040.00416.49
7.4.270.0070.00016.60
7.4.260.0070.00016.52
7.4.250.0040.00416.42
7.4.240.0020.00516.53
7.4.230.0000.00716.30
7.4.220.0100.01016.46
7.4.210.0120.00316.60
7.4.200.0030.00316.44
7.4.160.0090.00616.52
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0110.00616.58
7.4.120.0050.01116.53
7.4.110.0090.00916.26
7.4.100.0200.00316.39
7.4.90.0090.00916.44
7.4.80.0170.00019.39
7.4.70.0060.01516.36
7.4.60.0080.00816.53
7.4.50.0030.01416.45
7.4.40.0030.01316.62
7.4.30.0110.01116.56
7.4.00.0020.01514.88
7.3.330.0000.00513.15
7.3.320.0030.00213.39
7.3.310.0030.00316.26
7.3.300.0000.00616.41
7.3.290.0080.00716.34
7.3.280.0050.01216.33
7.3.270.0160.00017.40
7.3.260.0130.00316.33
7.3.250.0080.01016.50
7.3.240.0050.01416.59
7.3.230.0130.00316.39
7.3.210.0150.00316.29
7.3.200.0120.00616.64
7.3.190.0070.01016.38
7.3.180.0130.00316.62
7.3.170.0110.00516.48
7.3.160.0000.01616.54
7.3.120.0070.01115.00
7.3.110.0030.01315.14
7.3.100.0120.00615.02
7.3.90.0070.00714.86
7.3.80.0130.00314.87
7.3.70.0070.00414.79
7.3.60.0130.00314.85
7.3.50.0040.01114.96
7.3.40.0040.01114.48
7.3.30.0030.01214.74
7.3.20.0040.01116.70
7.3.10.0140.00316.47
7.3.00.0100.00316.55
7.2.330.0140.00416.66
7.2.320.0130.00916.80
7.2.310.0080.00816.70
7.2.300.0120.00616.60
7.2.290.0150.00916.64
7.2.250.0090.00914.88
7.2.240.0030.01714.82
7.2.230.0070.00715.04
7.2.220.0000.01314.90
7.2.210.0030.00714.87
7.2.200.0110.00414.79
7.2.190.0090.00614.70
7.2.180.0120.00314.79
7.2.170.0060.00315.09
7.2.60.0090.00316.67
7.2.00.0130.00719.25
7.1.330.0090.00315.66
7.1.320.0100.00715.76
7.1.310.0090.00615.66
7.1.300.0000.01115.71
7.1.290.0030.01015.97
7.1.280.0060.00615.49
7.1.270.0110.00015.77
7.1.260.0000.01215.98
7.1.200.0180.00715.09
7.1.100.0040.01118.29
7.1.70.0000.00817.04
7.1.60.0100.01019.48
7.1.50.0100.01016.80
7.1.00.0070.07322.25
7.0.200.0030.00714.50
7.0.60.0100.07719.97
7.0.50.0000.09017.84
7.0.40.0230.07020.14
7.0.30.0100.04720.08
7.0.20.0430.07020.23
7.0.10.0100.03720.12
7.0.00.0100.08320.30
5.6.280.0030.03020.82
5.6.210.0030.08320.63
5.6.200.0100.07718.16
5.6.190.0070.04020.64
5.6.180.0400.07320.55
5.6.170.0270.06720.50
5.6.160.0070.08320.62
5.6.150.0000.05018.18
5.6.140.0000.04718.28
5.6.130.0100.07718.14
5.6.120.0030.08321.02
5.6.110.0230.06721.19
5.6.100.0170.07321.13
5.6.90.0100.07720.98
5.6.80.0130.07720.53
5.5.350.4170.03720.30
5.5.340.0000.08318.04
5.5.330.0070.06720.28
5.5.320.0230.08320.36
5.5.310.0230.08020.35
5.5.300.0030.04017.92
5.5.290.0000.04317.92
5.5.280.0100.08020.80
5.5.270.0170.07720.65
5.5.260.0130.08020.88
5.5.250.0130.04720.57
5.5.240.0300.05720.26

preferences:
50.06 ms | 400 KiB | 5 Q