3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function test() { var_dump(debug_print_backtrace(true)); } } class Bar { public function __construct() { $foo = new Foo(); $foo->test(); } } $bar = new Bar();

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.0130.00718.10
8.3.50.0120.00321.08
8.3.40.0120.00318.45
8.3.30.0110.00718.59
8.3.20.0040.00420.09
8.3.10.0000.00821.92
8.3.00.0000.00720.52
8.2.180.0070.00716.63
8.2.170.0120.00622.96
8.2.160.0100.01019.21
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0140.00426.16
8.2.120.0080.00019.54
8.2.110.0030.00621.09
8.2.100.0120.00017.84
8.2.90.0000.00819.15
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0050.00218.04
8.2.20.0000.00817.46
8.2.10.0080.00017.68
8.2.00.0090.00017.58
8.1.280.0100.01025.92
8.1.270.0060.00922.26
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0030.00622.25
8.1.230.0080.00418.65
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.10
8.1.180.0000.00718.61
8.1.170.0040.00418.54
8.1.160.0050.00322.23
8.1.150.0000.00718.61
8.1.140.0070.00017.43
8.1.130.0040.00417.81
8.1.120.0070.00017.43
8.1.110.0070.00017.32
8.1.100.0040.00417.38
8.1.90.0000.00817.34
8.1.80.0000.00717.27
8.1.70.0000.00717.32
8.1.60.0030.00617.53
8.1.50.0000.00817.55
8.1.40.0040.00417.35
8.1.30.0040.00417.69
8.1.20.0000.00817.50
8.1.10.0000.00717.38
8.1.00.0000.00717.42
8.0.300.0000.00720.13
8.0.290.0060.00316.58
8.0.280.0000.00718.33
8.0.270.0070.00017.18
8.0.260.0000.00716.75
8.0.250.0070.00016.75
8.0.240.0000.00816.88
8.0.230.0030.00316.87
8.0.220.0030.00316.83
8.0.210.0000.00716.71
8.0.200.0060.00016.76
8.0.190.0000.00816.88
8.0.180.0030.00516.74
8.0.170.0070.00016.73
8.0.160.0040.00416.73
8.0.150.0030.00516.73
8.0.140.0040.00416.79
8.0.130.0060.00013.16
8.0.120.0030.00516.66
8.0.110.0000.00716.72
8.0.100.0040.00416.87
8.0.90.0040.00416.84
8.0.80.0070.01416.70
8.0.70.0000.00716.76
8.0.60.0000.00716.69
8.0.50.0080.00016.69
8.0.30.0090.00916.92
8.0.20.0130.00917.40
8.0.10.0000.00816.84
8.0.00.0130.00916.71
7.4.330.0000.00515.00
7.4.320.0030.00316.53
7.4.300.0030.00316.45
7.4.290.0070.00016.63
7.4.280.0030.00516.49
7.4.270.0000.00716.60
7.4.260.0000.00716.49
7.4.250.0080.00016.59
7.4.240.0050.00216.50
7.4.230.0070.00016.46
7.4.220.0070.01416.43
7.4.210.0080.00716.56
7.4.200.0030.00316.50
7.4.190.0000.00716.72
7.4.160.0160.00616.56
7.4.150.0090.01517.40
7.4.140.0110.00917.86
7.4.130.0090.00816.48
7.4.120.0070.00916.57
7.4.110.0040.01316.47
7.4.100.0090.01216.48
7.4.90.0100.00716.53
7.4.80.0110.00919.39
7.4.70.0090.00616.58
7.4.60.0130.00316.49
7.4.50.0000.00816.46
7.4.40.0000.01022.77
7.4.30.0100.00716.25
7.4.00.0090.00615.08
7.3.330.0020.00213.19
7.3.320.0000.00613.04
7.3.310.0070.00016.19
7.3.300.0030.00316.08
7.3.290.0120.00316.21
7.3.280.0060.00916.17
7.3.270.0030.01417.40
7.3.260.0150.00916.48
7.3.250.0110.00516.36
7.3.240.0150.00516.39
7.3.230.0100.01016.39
7.3.210.0070.01016.57
7.3.200.0060.01019.39
7.3.190.0080.00916.18
7.3.180.0030.01316.27
7.3.170.0120.00316.27
7.3.160.0090.01316.55
7.3.120.0070.01014.64
7.2.330.0090.01216.62
7.2.320.0170.00016.21
7.2.310.0070.01016.66
7.2.300.0140.00916.72
7.2.290.0100.00716.49
7.2.00.0040.01119.35
7.1.100.0030.00718.06
7.1.70.0060.00617.11
7.1.60.0130.01019.82
7.1.50.0140.01116.86
7.1.00.0030.07722.43
7.0.200.0000.00716.66
7.0.140.0030.07321.95
7.0.60.0070.06719.91
7.0.50.0130.07717.84
7.0.40.0100.08320.11
7.0.30.0270.04320.15
7.0.20.0270.05320.30
7.0.10.0030.04320.19
7.0.00.0070.07020.06
5.6.280.0000.07721.10
5.6.210.0400.05320.57
5.6.200.0070.03718.27
5.6.190.0030.08720.77
5.6.180.0430.04720.48
5.6.170.0230.07020.56
5.6.160.0000.04720.55
5.6.150.0100.07718.18
5.6.140.0070.07318.23
5.6.130.0130.05318.18
5.6.120.0100.04020.98
5.6.110.0100.05720.96
5.6.100.0070.06320.99
5.6.90.0000.05720.97
5.6.80.0170.07020.51
5.5.350.0230.08320.41
5.5.340.0130.06018.05
5.5.330.0030.04020.22
5.5.320.0130.04720.20
5.5.310.0270.08020.25
5.5.300.0070.07717.98
5.5.290.0000.05318.04
5.5.280.0070.06020.77
5.5.270.0130.03320.68
5.5.260.0030.04020.68
5.5.250.0000.06020.71
5.5.240.0170.06320.24
5.4.450.0130.06019.48
5.4.440.0900.04719.58
5.4.430.0770.06019.60
5.4.420.0870.05719.52
5.4.410.1100.06019.57
5.4.400.1070.06019.16
5.4.390.1270.06719.12
5.4.380.0300.05018.73
5.4.370.0430.05318.70
5.4.360.0430.05718.60
5.4.350.0060.03412.02
5.4.340.0060.03612.02
5.4.320.0080.03412.50
5.4.310.0080.04612.50
5.4.300.0070.03912.50
5.4.290.0050.04712.50
5.4.280.0050.03512.40
5.4.270.0090.04112.40
5.4.260.0130.07318.73
5.4.250.0070.05318.76
5.4.240.0130.04719.01
5.4.230.0100.05018.98
5.4.220.0230.04319.07
5.4.210.0100.05718.97
5.4.200.0170.04318.64
5.4.190.0100.05018.81
5.4.180.0130.05018.63
5.4.170.0070.05319.02
5.4.160.0170.04318.94
5.4.150.0170.06718.75
5.4.140.0070.07316.55
5.4.130.0130.04316.28
5.4.120.0070.05316.41
5.4.110.0100.07016.68
5.4.100.0070.06016.41
5.4.90.0130.04316.65
5.4.80.0070.05016.53
5.4.70.0130.04316.67
5.4.60.0100.04716.39
5.4.50.0130.04316.37
5.4.40.0170.06016.39
5.4.30.0100.04716.42
5.4.20.0200.05316.36
5.4.10.0070.05716.41
5.4.00.0030.05316.01
5.3.290.0050.05012.80
5.3.280.0170.04014.67
5.3.270.0170.04314.51
5.3.260.0070.05314.67
5.3.250.0070.06014.69
5.3.240.0100.05314.82
5.3.230.0070.07314.77
5.3.220.0030.06014.67
5.3.210.0030.05714.55
5.3.200.0100.06014.57
5.3.190.0100.07014.55
5.3.180.0100.04714.66
5.3.170.0100.05014.46
5.3.160.0130.04714.63
5.3.150.0030.05314.63
5.3.140.0100.05014.57
5.3.130.0070.06014.52
5.3.120.0170.06314.56
5.3.110.0100.05014.63
5.3.100.0100.04713.94
5.3.90.0270.03313.92
5.3.80.0100.05014.08
5.3.70.0100.04714.21
5.3.60.0100.05313.99
5.3.50.0170.06014.13
5.3.40.0070.05313.86
5.3.30.0070.07014.07
5.3.20.0100.04713.70
5.3.10.0030.05713.87
5.3.00.0030.05313.64
5.2.170.0000.04711.22
5.2.160.0070.03711.13
5.2.150.0100.03711.23
5.2.140.0100.03711.30
5.2.130.0030.04011.09
5.2.120.0100.05311.08
5.2.110.0070.03711.09
5.2.100.0030.04011.06
5.2.90.0030.04011.27
5.2.80.0030.04311.06
5.2.70.0070.04011.04
5.2.60.0030.04311.04
5.2.50.0070.04011.18
5.2.40.0070.03710.96
5.2.30.0100.03310.95
5.2.20.0070.04011.05
5.2.10.0070.03711.04
5.2.00.0100.03310.80
5.1.60.0030.04310.24
5.1.50.0030.03310.16
5.1.40.0030.04710.07
5.1.30.0100.04710.34
5.1.20.0030.05010.33
5.1.10.0100.04310.27
5.1.00.0070.05010.18
5.0.50.0030.0308.65
5.0.40.0030.0278.56
5.0.30.0030.0438.32
5.0.20.0070.0238.05
5.0.10.0130.0238.13
5.0.00.0030.0438.25
4.4.90.0000.0237.46
4.4.80.0000.0237.46
4.4.70.0030.0207.46
4.4.60.0030.0237.46
4.4.50.0000.0237.46
4.4.40.0030.0437.46
4.4.30.0000.0237.46
4.4.20.0030.0207.46
4.4.10.0030.0207.46
4.4.00.0000.0407.46
4.3.110.0030.0207.46
4.3.100.0030.0277.46
4.3.90.0070.0177.45
4.3.80.0130.0237.45
4.3.70.0030.0307.45
4.3.60.0030.0237.45
4.3.50.0000.0307.45
4.3.40.0000.0337.45
4.3.30.0030.0207.45
4.3.20.0000.0237.45
4.3.10.0000.0237.45
4.3.00.0070.0177.17

preferences:
46.25 ms | 401 KiB | 5 Q