3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'hola '; $append = function ($carry, $append) { return $carry .= $append; }; echo $append($a, 'Nico') . PHP_EOL;

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.4.20.0100.01019.71
8.4.10.0000.00919.59
8.3.140.0030.00618.25
8.3.130.0040.00418.18
8.3.120.0070.01119.05
8.3.110.0030.00618.59
8.3.100.0130.00716.60
8.3.90.0090.00026.77
8.3.80.0060.00616.75
8.3.70.0110.01116.58
8.3.60.0040.01116.50
8.3.50.0110.01117.28
8.3.40.0070.00718.79
8.3.30.0090.00618.48
8.3.20.0070.00020.33
8.3.10.0070.00023.65
8.3.00.0040.00423.67
8.2.260.0040.00420.89
8.2.250.0040.00416.65
8.2.240.0030.00618.43
8.2.230.0090.00020.94
8.2.220.0040.00424.06
8.2.210.0100.00326.77
8.2.200.0040.00416.63
8.2.190.0070.00716.58
8.2.180.0110.00416.38
8.2.170.0120.00822.96
8.2.160.0070.00720.38
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00422.13
8.2.120.0040.00426.35
8.2.110.0060.00322.16
8.2.100.0120.00017.84
8.2.90.0000.00819.24
8.2.80.0040.00419.46
8.2.70.0080.00017.75
8.2.60.0000.00918.05
8.2.50.0050.00318.10
8.2.40.0040.00422.32
8.2.30.0080.00019.32
8.2.20.0000.00718.12
8.2.10.0020.00518.00
8.2.00.0000.00718.14
8.1.310.0070.00718.36
8.1.300.0180.00016.37
8.1.290.0080.00330.84
8.1.280.0140.00325.92
8.1.270.0060.00318.67
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00523.88
8.1.230.0070.00417.77
8.1.220.0070.00317.74
8.1.210.0030.00518.77
8.1.200.0050.00517.13
8.1.190.0000.00817.23
8.1.180.0080.00318.10
8.1.170.0050.00318.65
8.1.160.0050.00319.00
8.1.150.0070.00018.79
8.1.140.0000.00817.65
8.1.130.0030.00318.91
8.1.120.0030.00517.37
8.1.110.0020.00517.35
8.1.100.0040.00417.44
8.1.90.0030.00517.35
8.1.80.0000.00817.36
8.1.70.0000.00717.35
8.1.60.0040.00417.54
8.1.50.0030.00517.40
8.1.40.0000.00717.54
8.1.30.0000.00817.67
8.1.20.0060.00317.66
8.1.10.0080.00017.62
8.1.00.0040.00417.49
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0050.00317.20
8.0.260.0040.00418.91
8.0.250.0000.00816.96
8.0.240.0040.00416.92
8.0.230.0000.00716.91
8.0.220.0070.00016.87
8.0.210.0050.00216.92
8.0.200.0000.00716.92
8.0.190.0000.00716.98
8.0.180.0040.00416.90
8.0.170.0030.00316.90
8.0.160.0000.00716.86
8.0.150.0030.00516.91
8.0.140.0000.01016.72
8.0.130.0060.00013.34
8.0.120.0000.00716.86
8.0.110.0040.00416.77
8.0.100.0070.00016.89
8.0.90.0050.00316.71
8.0.80.0110.00916.87
8.0.70.0000.00716.79
8.0.60.0050.00216.75
8.0.50.0040.00416.81
8.0.30.0090.01016.96
8.0.20.0090.01017.40
8.0.10.0000.00716.82
8.0.00.0030.01516.73
7.4.330.0050.00016.67
7.4.320.0070.00016.51
7.4.300.0000.00616.58
7.4.290.0000.00716.48
7.4.280.0050.00316.53
7.4.270.0000.00616.43
7.4.260.0000.00716.40
7.4.250.0070.00016.53
7.4.240.0040.00416.45
7.4.230.0030.00316.32
7.4.220.0050.01416.60
7.4.210.0070.00816.52
7.4.200.0000.00716.50
7.4.160.0080.00716.53
7.4.150.0040.01517.40
7.4.140.0110.00817.86
7.4.130.0080.00816.55
7.4.120.0070.01216.52
7.4.110.0100.01016.38
7.4.100.0160.00616.41
7.4.90.0140.00316.40
7.4.80.0100.00719.39
7.4.70.0130.00316.57
7.4.60.0140.00316.33
7.4.50.0070.01116.29
7.4.40.0070.01016.46
7.4.30.0060.01216.37
7.4.00.0070.01014.96
7.3.330.0000.00513.29
7.3.320.0020.00213.13
7.3.310.0040.00416.30
7.3.300.0000.00716.31
7.3.290.0080.00016.30
7.3.280.0060.01016.31
7.3.270.0060.01117.40
7.3.260.0110.00816.32
7.3.250.0100.00716.48
7.3.240.0120.00616.48
7.3.230.0110.00516.34
7.3.210.0030.01416.61
7.3.200.0090.00916.35
7.3.190.0060.00916.54
7.3.180.0110.01116.24
7.3.170.0070.01016.56
7.3.160.0090.00916.22
7.3.120.0060.01314.70
7.3.110.0150.00414.68
7.3.100.0070.00714.46
7.3.90.0040.00714.84
7.3.80.0040.01114.70
7.3.70.0140.00014.65
7.3.60.0060.00614.84
7.3.50.0110.00314.93
7.3.40.0100.00714.67
7.3.30.0070.00414.71
7.3.20.0000.01416.49
7.3.10.0090.00016.75
7.3.00.0060.00616.44
7.2.330.0070.01116.47
7.2.320.0060.01116.60
7.2.310.0060.00916.77
7.2.300.0070.01416.77
7.2.290.0130.00316.55
7.2.250.0060.01214.80
7.2.240.0070.01115.07
7.2.230.0130.00314.56
7.2.220.0060.00314.95
7.2.210.0040.00814.81
7.2.200.0130.00314.97
7.2.190.0000.01215.03
7.2.180.0040.01114.57
7.2.170.0030.01015.09
7.2.60.0120.00916.86
7.2.50.0080.00416.64
7.1.330.0030.01315.50
7.1.320.0120.00315.63
7.1.310.0030.00615.75
7.1.300.0040.00415.78
7.1.290.0070.00715.71
7.1.280.0030.00715.80
7.1.270.0000.00815.79
7.1.260.0070.00715.96
7.1.200.0040.01115.70
7.1.110.0270.01016.25
7.1.100.0370.00316.19
7.1.90.0400.00916.07
7.1.80.0440.01015.83
7.1.70.1320.01015.21
7.1.60.0590.00733.29
7.1.50.0550.01132.98
7.1.40.0550.01032.46
7.1.30.0580.01132.63
7.1.20.0500.01032.61
7.1.10.0450.00614.82
7.1.00.0630.00714.74
7.0.250.0440.00615.82
7.0.240.0510.00915.87
7.0.230.0470.00415.86
7.0.220.0550.00615.79
7.0.210.0410.01014.91
7.0.200.0530.00314.64
7.0.190.0590.00714.89
7.0.180.0410.00714.61
7.0.170.0500.00714.64
7.0.160.0550.00414.36
7.0.150.0430.01314.48
7.0.140.0460.00714.57
7.0.130.0440.00614.70
7.0.120.0470.00914.87
7.0.110.0430.01014.43
7.0.100.0460.01014.60
7.0.90.0430.00714.43
7.0.80.0510.00314.48
7.0.70.0420.01014.41
7.0.60.0460.00714.44
7.0.50.0430.01314.50
7.0.40.0450.01014.83
7.0.30.0470.00714.66
7.0.20.0420.01014.77
7.0.10.0610.01414.62
7.0.00.0690.00714.37

preferences:
36.18 ms | 403 KiB | 5 Q