3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bind($cb) { $bound_args = func_get_args(); array_shift($bound_args); $bound_exec = function () use ($bound_args, $cb) { $args = array_merge($bound_args, func_get_args()); return call_user_func_array($cb, $args); }; return $bound_exec; } $fn = bind(function ($a, $b) { return $a . $b; }, 'hello '); echo $fn('world');

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.0040.01118.40
8.3.50.0050.01321.93
8.3.40.0120.00618.88
8.3.30.0140.00019.08
8.3.20.0070.00020.08
8.3.10.0080.00023.38
8.3.00.0070.00019.15
8.2.180.0070.01418.29
8.2.170.0000.01422.96
8.2.160.0070.01019.33
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0050.00319.69
8.2.110.0060.00320.40
8.2.100.0070.00317.66
8.2.90.0080.00017.75
8.2.80.0100.00018.64
8.2.70.0040.00417.93
8.2.60.0040.00418.04
8.2.50.0000.00818.10
8.2.40.0000.00819.30
8.2.30.0000.00819.32
8.2.20.0000.00817.69
8.2.10.0000.00717.98
8.2.00.0030.00517.78
8.1.280.0110.00825.92
8.1.270.0060.00318.95
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0070.00323.85
8.1.230.0080.00320.91
8.1.220.0030.00518.64
8.1.210.0000.00818.77
8.1.200.0000.00817.36
8.1.190.0050.00317.36
8.1.180.0050.00318.10
8.1.170.0000.00918.49
8.1.160.0070.00018.83
8.1.150.0000.00918.95
8.1.140.0040.00417.46
8.1.130.0040.00417.75
8.1.120.0000.00717.46
8.1.110.0040.00417.45
8.1.100.0070.00017.48
8.1.90.0000.00717.43
8.1.80.0040.00417.51
8.1.70.0070.00017.47
8.1.60.0000.01117.54
8.1.50.0030.00617.42
8.1.40.0040.00417.46
8.1.30.0000.00917.64
8.1.20.0020.00517.52
8.1.10.0000.00717.62
8.1.00.0050.00317.40
8.0.300.0060.00318.77
8.0.290.0060.00316.63
8.0.280.0070.00018.35
8.0.270.0000.00918.61
8.0.260.0030.00317.25
8.0.250.0030.00316.95
8.0.240.0040.00416.93
8.0.230.0040.00417.01
8.0.220.0040.00416.89
8.0.210.0070.00016.87
8.0.200.0000.00716.81
8.0.190.0040.00416.96
8.0.180.0040.00416.87
8.0.170.0050.00316.81
8.0.160.0080.00016.95
8.0.150.0000.00816.87
8.0.140.0110.00016.85
8.0.130.0000.00613.30
8.0.120.0000.00816.78
8.0.110.0070.00016.88
8.0.100.0070.00016.83
8.0.90.0070.00016.93
8.0.80.0150.00616.90
8.0.70.0000.00816.84
8.0.60.0040.00416.83
8.0.50.0000.00716.88
8.0.30.0110.00817.24
8.0.20.0110.00917.40
8.0.10.0000.00717.04
8.0.00.0060.01316.76
7.4.330.0000.00515.03
7.4.320.0050.00216.50
7.4.300.0060.00016.50
7.4.290.0030.00316.63
7.4.280.0080.00016.58
7.4.270.0020.00516.55
7.4.260.0070.00016.57
7.4.250.0050.00216.48
7.4.240.0050.00216.51
7.4.230.0000.00716.61
7.4.220.0040.01316.54
7.4.210.0060.01116.67
7.4.200.0000.00716.34
7.4.160.0090.00616.52
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0140.00616.48
7.4.120.0080.00916.62
7.4.110.0080.00816.55
7.4.100.0130.01016.52
7.4.90.0030.01516.43
7.4.80.0100.00719.39
7.4.70.0110.01116.33
7.4.60.0060.01016.51
7.4.50.0040.00416.42
7.4.40.0060.01616.53
7.4.30.0130.00716.54
7.4.00.0060.00615.12
7.3.330.0030.00313.09
7.3.320.0050.00013.33
7.3.310.0030.00516.34
7.3.300.0070.00016.26
7.3.290.0020.00516.24
7.3.280.0110.00816.27
7.3.270.0070.01017.40
7.3.260.0150.00316.57
7.3.250.0140.00616.59
7.3.240.0070.01016.42
7.3.230.0100.00716.39
7.3.210.0080.00816.36
7.3.200.0140.00619.39
7.3.190.0120.00616.52
7.3.180.0110.00616.42
7.3.170.0100.00716.59
7.3.160.0030.01516.45
7.3.10.0070.00616.57
7.3.00.0070.00716.61
7.2.330.0120.01216.73
7.2.320.0060.00916.80
7.2.310.0110.01116.76
7.2.300.0070.01016.82
7.2.290.0110.01116.71
7.2.130.0030.00816.91
7.2.120.0070.00616.90
7.2.110.0050.00716.94
7.2.100.0050.00916.92
7.2.90.0050.00716.97
7.2.80.0040.00816.92
7.2.70.0060.00716.83
7.2.60.0050.00916.92
7.2.50.0080.00517.02
7.2.40.0050.01016.99
7.2.30.0050.00916.91
7.2.20.0070.00416.90
7.2.10.0100.00416.77
7.2.00.0050.00816.86
7.1.250.0070.00615.78
7.1.200.0030.00615.89
7.1.70.0050.00217.23
7.1.60.0130.01019.57
7.1.50.0080.00317.06
7.1.00.0030.07022.28
7.0.200.0030.00716.86
7.0.140.0000.03722.11
7.0.60.0000.04319.86
7.0.50.0030.04017.88
7.0.40.0030.04320.09
7.0.30.0270.07720.23
7.0.20.0170.05020.03
7.0.10.0100.08320.07
7.0.00.0070.09020.12
5.6.280.0000.07721.08
5.6.210.0000.05720.49
5.6.200.0070.04718.33
5.6.190.0100.07020.50
5.6.180.0370.04320.49
5.6.170.0270.04020.44
5.6.160.0070.07020.54
5.6.150.0200.07018.28
5.6.140.0030.06018.18
5.6.130.0000.04718.15
5.6.120.0030.04021.09
5.6.110.0070.06321.00
5.6.100.0100.08321.05
5.6.90.0070.08321.06
5.6.80.0130.08020.39
5.5.350.0400.08020.48
5.5.340.0070.08018.08
5.5.330.0100.08320.43
5.5.320.0170.07720.29
5.5.310.0300.07720.30
5.5.300.0070.06317.98
5.5.290.0130.05717.93
5.5.280.0070.04020.89
5.5.270.0000.05720.84
5.5.260.0070.05720.88
5.5.250.0100.07720.65
5.5.240.0030.08020.16
5.4.450.0600.05019.45
5.4.440.0830.05719.44
5.4.430.0900.05719.48
5.4.420.0100.05319.32
5.4.410.0170.04719.41
5.4.400.0100.05319.13
5.4.390.0070.05319.26
5.4.380.0270.04718.51
5.4.370.0300.04018.59
5.4.360.0200.05018.80
5.4.350.0170.05718.74
5.4.340.0200.05018.75
5.4.320.0200.05018.75
5.4.310.0200.05018.46
5.4.300.0170.05318.79
5.4.290.0200.05018.80
5.4.280.0230.05018.50
5.4.270.0170.05018.78
5.4.260.0200.05318.53
5.4.250.0230.05718.78
5.4.240.0130.05718.80
5.4.230.0200.05018.72
5.4.220.0130.06018.61
5.4.210.0170.05318.74
5.4.200.0100.06016.67
5.4.190.0200.05018.52
5.4.180.0270.04318.73
5.4.170.0100.06718.74
5.4.160.0230.04718.61
5.4.150.0130.06318.83
5.4.140.0270.04316.29
5.4.130.0200.05016.23
5.4.120.0270.04016.29
5.4.110.0230.04316.29
5.4.100.0230.05016.49
5.4.90.0130.05716.36
5.4.80.0100.05316.20
5.4.70.0130.05316.24
5.4.60.0230.04316.32
5.4.50.0200.05016.30
5.4.40.0170.05016.31
5.4.30.0230.06016.26
5.4.20.0400.05316.30
5.4.10.0230.05316.20
5.4.00.0230.04715.69
5.3.290.0200.06014.84
5.3.280.0070.06314.76
5.3.270.0170.05314.66
5.3.260.0270.04714.73
5.3.250.0200.05014.60
5.3.240.0130.06314.69
5.3.230.0270.05314.83
5.3.220.0270.04314.60
5.3.210.0230.05014.80
5.3.200.0230.04714.71
5.3.190.0100.06314.61
5.3.180.0130.05714.78
5.3.170.0170.05014.78
5.3.160.0030.06314.68
5.3.150.0100.05714.55
5.3.140.0230.04314.55
5.3.130.0130.05714.69
5.3.120.0170.05314.61
5.3.110.0130.06314.58
5.3.100.0230.04714.07
5.3.90.0230.04714.09
5.3.80.0170.05014.05
5.3.70.0170.05014.06
5.3.60.0230.04314.06
5.3.50.0170.05013.99
5.3.40.0170.05714.01
5.3.30.0100.05314.03
5.3.20.0130.05313.73
5.3.10.0230.04313.84
5.3.00.0130.05013.73
5.2.170.0100.05011.20
5.2.160.0200.03311.19
5.2.150.0130.04311.18
5.2.140.0270.02711.34
5.2.130.0170.03711.15
5.2.120.0230.03011.15
5.2.110.0100.04311.19
5.2.100.0100.04311.18
5.2.90.0100.04311.08
5.2.80.0300.03011.21
5.2.70.0170.05011.17
5.2.60.0170.05711.07
5.2.50.0170.04011.13
5.2.40.0100.04311.05
5.2.30.0200.03311.07
5.2.20.0030.04711.00
5.2.10.0200.04010.92
5.2.00.0200.03310.76
5.1.60.0100.03710.09
5.1.50.0130.03010.01
5.1.40.0100.03710.00
5.1.30.0130.03310.38
5.1.20.0170.03010.53
5.1.10.0170.03010.09
5.1.00.0130.03710.09
5.0.50.0100.0308.64
5.0.40.0070.0278.52
5.0.30.0100.0408.36
5.0.20.0130.0208.32
5.0.10.0070.0278.15
5.0.00.0070.0438.23
4.4.90.0070.0206.81
4.4.80.0130.0136.81
4.4.70.0000.0276.81
4.4.60.0070.0206.81
4.4.50.0030.0236.81
4.4.40.0070.0336.81
4.4.30.0030.0236.81
4.4.20.0070.0206.81
4.4.10.0070.0206.81
4.4.00.0000.0406.81
4.3.110.0030.0236.81
4.3.100.0130.0136.81
4.3.90.0070.0206.81
4.3.80.0100.0306.81
4.3.70.0100.0176.81
4.3.60.0130.0136.81
4.3.50.0030.0236.81
4.3.40.0100.0306.81
4.3.30.0030.0236.81
4.3.20.0070.0206.81
4.3.10.0070.0236.81
4.3.00.0130.0207.73

preferences:
55.6 ms | 401 KiB | 5 Q