3v4l.org

run code in 300+ PHP versions simultaneously
<?hh function foo(): (function(string): string) { $x = 'bar'; return $y ==> $x . $y; } function test(): void { $fn = foo(); echo $fn('baz'); // barbaz }

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.0030.01418.30
8.3.50.0120.00922.04
8.3.40.0060.00918.72
8.3.30.0110.00418.88
8.3.20.0050.00320.04
8.3.10.0040.00423.70
8.3.00.0050.00319.25
8.2.180.0070.01116.32
8.2.170.0110.01122.96
8.2.160.0130.00318.83
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.15
8.2.110.0030.00720.18
8.2.100.0080.00318.09
8.2.90.0040.00419.25
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0070.00418.07
8.2.40.0040.00418.09
8.2.30.0060.00317.92
8.2.20.0000.00717.48
8.2.10.0030.00317.84
8.2.00.0030.00717.41
8.1.280.0110.00325.92
8.1.270.0080.00023.91
8.1.260.0090.00926.35
8.1.250.0080.00028.09
8.1.240.0040.00421.94
8.1.230.0040.00718.96
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00317.13
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0070.00021.79
8.1.150.0040.00418.74
8.1.140.0000.00717.31
8.1.130.0090.00017.73
8.1.120.0050.00217.32
8.1.110.0040.00417.27
8.1.100.0050.00217.37
8.1.90.0000.00817.24
8.1.80.0040.00417.27
8.1.70.0000.00817.32
8.1.60.0050.00317.40
8.1.50.0030.00617.21
8.1.40.0000.00817.37
8.1.30.0040.00417.52
8.1.20.0020.00517.43
8.1.10.0050.00217.33
8.1.00.0040.00417.29
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0050.00318.36
8.0.270.0070.00017.18
8.0.260.0040.00418.27
8.0.250.0070.00016.73
8.0.240.0030.00316.79
8.0.230.0050.00216.81
8.0.220.0070.00016.73
8.0.210.0040.00416.61
8.0.200.0000.00616.69
8.0.190.0000.00716.72
8.0.180.0000.00816.79
8.0.170.0040.00416.78
8.0.160.0000.00716.62
8.0.150.0040.00416.77
8.0.140.0030.00516.59
8.0.130.0000.00613.46
8.0.120.0000.00716.61
8.0.110.0000.00716.70
8.0.100.0080.00016.68
8.0.90.0050.00316.63
8.0.80.0030.01216.71
8.0.70.0000.00716.64
8.0.60.0040.00416.74
8.0.50.0000.00716.62
8.0.30.0090.01016.82
8.0.20.0110.00917.40
8.0.10.0050.00216.89
8.0.00.0100.00716.64
7.4.330.0020.00215.00
7.4.320.0030.00316.50
7.4.300.0030.00316.28
7.4.290.0060.00516.34
7.4.280.0000.00816.30
7.4.270.0030.00316.51
7.4.260.0030.00316.36
7.4.250.0040.00416.23
7.4.240.0070.00016.40
7.4.230.0030.00316.27
7.4.220.0050.01816.56
7.4.210.0110.00416.37
7.4.200.0070.00016.47
7.4.160.0130.01016.35
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0050.01216.35
7.4.120.0160.00516.33
7.4.110.0130.00616.41
7.4.100.0130.01016.40
7.4.90.0080.00816.24
7.4.80.0130.00519.39
7.4.70.0090.01416.36
7.4.60.0090.00616.37
7.4.50.0030.00316.28
7.4.40.0130.00916.28
7.4.30.0100.00716.26
7.3.330.0000.00613.07
7.3.320.0050.00013.21
7.3.310.0000.00716.08
7.3.300.0040.00416.07
7.3.290.0120.00616.16
7.3.280.0130.00416.19
7.3.270.0140.00317.40
7.3.260.0150.00316.41
7.3.250.0080.00816.23
7.3.240.0100.00716.43
7.3.230.0060.01016.50
7.3.210.0080.00816.31
7.3.200.0100.01319.39
7.3.190.0090.01316.41
7.3.180.0060.00916.20
7.3.170.0130.00216.27
7.3.160.0090.00616.24
7.3.00.0250.00814.70
7.2.330.0100.00716.45
7.2.320.0080.00816.39
7.2.310.0160.00316.57
7.2.300.0120.00916.58
7.2.290.0090.01216.49
7.2.130.0790.00814.90
7.2.120.0670.00314.48
7.2.110.0450.00314.72
7.2.100.0260.01014.69
7.2.90.0450.00914.81
7.2.80.0520.01414.77
7.2.70.0380.00714.75
7.2.60.0580.01014.58
7.2.50.0700.00514.62
7.2.40.0500.00814.70
7.2.30.0470.00714.56
7.2.20.0610.00514.68
7.2.10.0960.00914.74
7.2.00.0560.00514.71
7.1.250.0240.00513.57
7.1.240.0330.00513.62
7.1.230.0220.00913.72
7.1.220.0170.00613.49
7.1.210.0500.00813.54
7.1.200.0330.00613.61
7.1.190.0820.00313.66
7.1.180.0630.00313.64
7.1.170.0530.00613.67
7.1.160.0580.00313.59
7.1.150.0500.00313.64
7.1.140.0650.00513.39
7.1.130.0810.01113.69
7.1.120.0710.00213.58
7.1.110.0520.00813.38
7.1.100.0960.00613.82
7.1.90.0710.01013.67
7.1.80.0800.01013.65
7.1.70.0980.00413.46
7.1.60.1360.00813.34
7.1.50.0490.00913.20
7.1.40.0340.00813.54
7.1.30.0580.00813.49
7.1.20.0480.00713.25
7.1.10.0560.00513.22
7.1.00.0500.01013.48
7.0.330.0520.01113.38
7.0.320.0580.00813.15
7.0.310.0270.01213.15
7.0.300.0570.00213.32
7.0.290.0760.00713.17
7.0.280.0510.00813.21
7.0.270.0660.00713.38
7.0.260.0560.00513.05
7.0.250.0500.00612.97
7.0.240.0620.00813.55
7.0.230.0970.00513.31
7.0.220.1120.01013.40
7.0.210.0600.00813.08
7.0.200.0880.01013.09
7.0.190.0540.00613.07
7.0.180.0700.00213.13
7.0.170.0690.00613.05
7.0.160.0570.00713.14
7.0.150.0380.00313.00
7.0.140.0330.00712.90
7.0.130.0390.00613.05
7.0.120.0370.01213.06
7.0.110.0490.00813.24
7.0.100.0390.00712.85
7.0.90.0340.00513.07
7.0.80.0480.00613.07
7.0.70.0500.00712.91
7.0.60.0340.01113.09
7.0.50.0410.00313.06
7.0.40.0560.00812.90
7.0.30.0440.00513.19
7.0.20.0290.01113.10
7.0.10.0350.00713.15
7.0.00.0360.00713.10
5.6.380.0090.00613.84
5.6.370.0160.00614.11
5.6.360.0170.00514.28
5.6.350.0060.01414.03
5.6.340.0170.00513.99
5.6.330.0170.00414.01
5.6.320.0130.00414.11
5.6.310.0100.00914.22
5.6.300.0180.00413.99
5.6.290.0120.00914.09
5.6.280.0140.00614.38
5.6.270.0140.00614.08
5.6.260.0110.01013.89
5.6.250.0140.00714.14
5.6.240.0120.00914.28
5.6.230.0120.00614.28
5.6.220.0080.01113.99
5.6.210.0150.00313.90
5.6.200.0070.01214.21
5.6.190.0080.01014.08
5.6.180.0100.00814.26
5.6.170.0150.00314.09
5.6.160.0100.01113.91
5.6.150.0130.00613.92
5.6.140.0160.00514.16
5.6.130.0120.00714.01
5.6.120.0160.00414.31
5.6.110.0120.00614.16
5.6.100.0150.00514.07
5.6.90.0080.01114.13
5.6.80.0060.01514.15
5.6.70.0100.00713.89
5.6.60.0150.00414.00
5.6.50.0080.00813.73
5.6.40.0120.00413.89
5.6.30.0100.01013.98
5.6.20.0110.00513.88
5.6.10.0100.00613.90
5.6.00.0080.00813.97
5.5.380.0050.00910.98
5.5.370.0140.00310.93
5.5.360.0140.00210.80
5.5.350.0120.00310.76
5.5.340.0060.00610.71
5.5.330.0060.00610.85
5.5.320.0040.00910.76
5.5.310.0060.00810.83
5.5.300.0080.00710.75
5.5.290.0090.00410.86
5.5.280.0080.00810.81
5.5.270.0040.00910.82
5.5.260.0100.00210.85
5.5.250.0040.00810.75
5.5.240.0060.00510.73
5.5.230.0050.00710.86
5.5.220.0010.01210.84
5.5.210.0040.01010.76
5.5.200.0090.00710.76
5.5.190.0090.01110.58
5.5.180.0110.00410.62
5.5.170.0110.00411.88
5.5.160.0080.00510.73
5.5.150.0070.00610.89
5.5.140.0090.00310.81
5.5.130.0070.00610.72
5.5.120.0050.00810.83
5.5.110.0060.00610.85
5.5.100.0060.00610.79
5.5.90.0050.00710.76
5.5.80.0040.00910.68
5.5.70.0060.00510.80
5.5.60.0100.00410.86
5.5.50.0100.00210.82
5.5.40.0060.00610.82
5.5.30.0030.00810.90
5.5.20.0090.00210.73
5.5.10.0080.00610.87
5.5.00.0090.00510.68
5.4.450.0080.00610.81
5.4.440.0130.00210.71
5.4.430.0080.00710.79
5.4.420.0080.00810.55
5.4.410.0100.00410.95
5.4.400.0100.00410.87
5.4.390.0080.00710.60
5.4.380.0130.00010.71
5.4.370.0100.00510.75
5.4.360.0060.00710.68
5.4.350.0110.00410.80
5.4.340.0070.00510.79
5.4.330.0080.00510.73
5.4.320.0090.00510.71
5.4.310.0090.00410.51
5.4.300.0060.00510.78
5.4.290.0100.00410.79
5.4.280.0090.00310.69
5.4.270.0090.00310.69
5.4.260.0050.00810.75
5.4.250.0070.00410.71
5.4.240.0070.00310.68
5.4.230.0060.00510.64
5.4.220.0080.00610.71
5.4.210.0110.00110.74
5.4.200.0050.00610.65
5.4.190.0080.00310.64
5.4.180.0080.00410.86
5.4.170.0070.00410.79
5.4.160.0070.00710.64
5.4.150.0070.00710.59
5.4.140.0100.00510.68
5.4.130.0100.00410.76
5.4.120.0100.00410.65
5.4.110.0070.00610.92
5.4.100.0080.00510.66
5.4.90.0100.00310.75
5.4.80.0090.00310.62
5.4.70.0120.00210.76
5.4.60.0050.00710.86
5.4.50.0070.00510.77
5.4.40.0060.00710.67
5.4.30.0100.00510.67
5.4.20.0070.00710.73
5.4.10.0050.00910.66
5.4.00.0080.00510.60

preferences:
47.06 ms | 401 KiB | 5 Q