3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 0; $bar = function() use (&$foo) { return ++ $foo; }; var_dump($bar() ?? $bar() ?? $bar(), $foo );

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.0090.00616.50
8.3.50.0130.00316.63
8.3.40.0070.00718.93
8.3.30.0070.00719.02
8.3.20.0040.00420.22
8.3.10.0080.00021.80
8.3.00.0040.00423.66
8.2.180.0070.01118.41
8.2.170.0100.00318.80
8.2.160.0100.00722.96
8.2.150.0100.00025.66
8.2.140.0030.00524.66
8.2.130.0080.00019.77
8.2.120.0080.00026.35
8.2.110.0030.00622.19
8.2.100.0000.01117.93
8.2.90.0050.00319.05
8.2.80.0090.00018.05
8.2.70.0090.00017.38
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00720.59
8.2.30.0070.00020.68
8.2.20.0000.00817.81
8.2.10.0040.00418.08
8.2.00.0080.00018.13
8.1.280.0040.01125.92
8.1.270.0040.00423.79
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0070.00419.06
8.1.220.0030.00517.74
8.1.210.0100.00018.77
8.1.200.0040.00417.47
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0030.00520.67
8.1.150.0000.00718.80
8.1.140.0040.00419.54
8.1.130.0000.00817.75
8.1.120.0000.00717.38
8.1.110.0050.00217.46
8.1.100.0080.00017.48
8.1.90.0000.00717.46
8.1.80.0040.00417.48
8.1.70.0000.00717.43
8.1.60.0040.00417.61
8.1.50.0000.00817.50
8.1.40.0040.00417.42
8.1.30.0030.00517.72
8.1.20.0040.00417.55
8.1.10.0040.00417.46
8.1.00.0000.00717.41
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0070.00018.36
8.0.270.0000.00717.19
8.0.260.0000.00617.29
8.0.250.0030.00317.00
8.0.240.0070.00016.93
8.0.230.0030.00316.92
8.0.220.0050.00316.79
8.0.210.0040.00416.90
8.0.200.0030.00316.95
8.0.190.0040.00416.93
8.0.180.0040.00416.85
8.0.170.0080.00016.82
8.0.160.0000.00716.92
8.0.150.0000.00716.82
8.0.140.0030.00516.84
8.0.130.0000.00513.38
8.0.120.0070.00016.81
8.0.110.0040.00416.90
8.0.100.0000.00716.79
8.0.90.0080.00016.87
8.0.80.0140.00316.81
8.0.70.0050.00316.78
8.0.60.0030.00516.86
8.0.50.0000.00816.75
8.0.30.0090.00817.11
8.0.20.0130.00817.40
8.0.10.0030.00317.08
8.0.00.0140.00416.80
7.4.330.0000.00516.84
7.4.320.0030.00316.50
7.4.300.0060.00016.52
7.4.290.0030.00316.45
7.4.280.0050.00516.59
7.4.270.0000.00716.48
7.4.260.0070.00016.48
7.4.250.0050.00216.39
7.4.240.0040.00416.47
7.4.230.0000.00716.58
7.4.220.0150.00616.46
7.4.210.0110.00416.62
7.4.200.0040.00416.64
7.4.160.0060.00916.37
7.4.150.0150.00317.40
7.4.140.0100.01117.86
7.4.130.0110.00916.48
7.4.120.0120.01016.58
7.4.110.0070.01116.42
7.4.100.0080.00816.44
7.4.90.0070.01016.34
7.4.80.0110.01119.39
7.4.70.0030.01516.62
7.4.60.0040.01216.51
7.4.50.0100.00616.29
7.4.40.0120.00816.23
7.4.30.0030.01416.46
7.4.00.0090.00614.91
7.3.330.0000.00613.27
7.3.320.0030.00313.33
7.3.310.0070.00016.34
7.3.300.0030.00316.17
7.3.290.0030.00316.14
7.3.280.0070.01116.26
7.3.270.0110.00617.40
7.3.260.0100.00716.55
7.3.250.0080.01416.35
7.3.240.0070.01016.24
7.3.230.0070.01016.50
7.3.210.0060.01116.28
7.3.200.0130.00319.39
7.3.190.0090.01216.40
7.3.180.0090.00916.43
7.3.170.0090.00916.59
7.3.160.0090.00616.52
7.3.120.0040.01114.70
7.3.110.0100.00714.52
7.3.100.0100.01014.81
7.3.90.0040.01614.52
7.3.80.0060.00914.78
7.3.70.0030.00914.85
7.3.60.0040.01114.54
7.3.50.0040.00714.77
7.3.40.0060.00614.46
7.3.30.0060.00614.75
7.3.20.0030.00716.75
7.3.10.0100.00316.71
7.3.00.0030.00616.70
7.2.330.0070.01116.69
7.2.320.0100.00616.51
7.2.310.0090.00916.41
7.2.300.0000.01716.68
7.2.290.0090.01216.74
7.2.250.0080.01214.71
7.2.240.0130.00615.05
7.2.230.0030.01415.16
7.2.220.0060.00914.87
7.2.210.0030.01415.09
7.2.200.0110.00315.08
7.2.190.0100.00314.96
7.2.180.0030.00915.07
7.2.170.0040.00714.75
7.2.60.0040.00916.70
7.2.00.0100.00019.13
7.1.330.0000.01216.04
7.1.320.0070.00615.95
7.1.310.0030.00915.64
7.1.300.0100.00315.90
7.1.290.0000.01415.91
7.1.280.0000.01215.86
7.1.270.0000.00915.82
7.1.260.0040.00415.97
7.1.200.0040.00715.92
7.1.100.0150.00318.05
7.1.70.0060.00316.93
7.1.60.0070.01119.21
7.1.50.0030.02017.14
7.1.00.0000.08022.33
7.0.200.0000.00816.85
7.0.60.0000.08721.70
7.0.50.0030.04317.95
7.0.40.0030.05020.41
7.0.30.0270.06020.21
7.0.20.0230.04020.30
7.0.10.0030.04320.35
7.0.00.0130.05320.19
5.6.210.0070.04720.77
5.6.200.0070.08718.20
5.6.190.0070.06020.57
5.6.180.0330.06020.48
5.6.170.0230.04720.44
5.6.160.0070.05020.44
5.6.150.0070.05318.15
5.6.140.0030.05018.15
5.6.130.0070.07318.18
5.6.120.0030.05321.14
5.6.110.0070.04320.89
5.6.100.0030.07020.96
5.6.90.0130.07721.00
5.6.80.0100.04720.37
5.5.350.0100.08320.50
5.5.340.0070.08017.92
5.5.330.0070.08320.57
5.5.320.0470.04720.31
5.5.310.0230.03320.30
5.5.300.0130.03017.98
5.5.290.0070.06317.98
5.5.280.0070.05020.85
5.5.270.0030.08720.76
5.5.260.0070.07720.84
5.5.250.0000.09020.46
5.5.240.0170.07020.12

preferences:
56.37 ms | 400 KiB | 5 Q