3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { $bar = new Bar(); $bar->test(); } } class Bar { public function test() { list(, $caller) = debug_backtrace(false); echo $caller['class']; } } $foo = new 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.0100.01018.27
8.3.50.0060.01221.09
8.3.40.0070.01118.67
8.3.30.0110.00319.04
8.3.20.0040.00420.41
8.3.10.0050.00321.86
8.3.00.0070.00022.38
8.2.180.0090.00616.63
8.2.170.0140.00722.96
8.2.160.0100.01019.20
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0100.01026.16
8.2.120.0060.00319.35
8.2.110.0050.00522.27
8.2.100.0030.00919.45
8.2.90.0000.00819.10
8.2.80.0050.00318.05
8.2.70.0000.00917.63
8.2.60.0050.00318.05
8.2.50.0000.00818.07
8.2.40.0040.00420.07
8.2.30.0070.00018.02
8.2.20.0000.00717.79
8.2.10.0000.00717.67
8.2.00.0000.00817.69
8.1.280.0130.00925.92
8.1.270.0030.00622.09
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.01023.82
8.1.230.0030.00719.22
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0000.00717.40
8.1.180.0000.00718.74
8.1.170.0070.00218.55
8.1.160.0050.00222.07
8.1.150.0000.00718.64
8.1.140.0030.00617.30
8.1.130.0030.00517.83
8.1.120.0000.00717.34
8.1.110.0000.00717.35
8.1.100.0000.00717.39
8.1.90.0070.00017.43
8.1.80.0070.00017.39
8.1.70.0070.00017.35
8.1.60.0030.00617.58
8.1.50.0020.00517.53
8.1.40.0050.00317.50
8.1.30.0030.00617.52
8.1.20.0030.00517.63
8.1.10.0000.00817.59
8.1.00.0000.00817.58
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0040.00418.32
8.0.270.0000.00717.11
8.0.260.0030.00316.75
8.0.250.0030.00316.94
8.0.240.0000.00716.99
8.0.230.0040.00416.88
8.0.220.0040.00316.82
8.0.210.0000.00716.88
8.0.200.0060.00316.80
8.0.190.0030.00316.94
8.0.180.0050.00316.75
8.0.170.0080.00016.85
8.0.160.0050.00216.88
8.0.150.0000.00816.70
8.0.140.0030.00316.69
8.0.130.0080.00013.30
8.0.120.0040.00416.81
8.0.110.0000.00716.77
8.0.100.0070.00016.73
8.0.90.0040.00416.87
8.0.80.0100.00716.79
8.0.70.0030.00516.95
8.0.60.0040.00416.87
8.0.50.0000.00816.63
8.0.30.0140.00817.12
8.0.20.0090.00917.40
8.0.10.0000.00816.78
8.0.00.0090.00816.83
7.4.330.0000.00515.03
7.4.320.0060.00016.54
7.4.300.0030.00316.65
7.4.290.0030.00316.46
7.4.280.0070.00016.60
7.4.270.0000.00716.49
7.4.260.0080.00016.52
7.4.250.0040.00416.42
7.4.240.0020.00516.56
7.4.230.0030.00316.60
7.4.220.0090.00916.45
7.4.210.0030.01516.52
7.4.200.0000.00716.68
7.4.190.0000.00716.68
7.4.160.0070.01016.15
7.4.150.0070.01017.40
7.4.140.0070.01417.86
7.4.130.0070.00916.62
7.4.120.0100.00816.57
7.4.110.0140.00316.63
7.4.100.0070.01116.41
7.4.90.0030.01416.45
7.4.80.0070.01319.39
7.4.70.0000.01616.50
7.4.60.0090.00916.34
7.4.50.0040.00416.34
7.4.40.0000.01922.77
7.4.30.0130.00316.64
7.4.00.0060.01114.71
7.3.330.0000.00513.14
7.3.320.0000.00513.30
7.3.310.0030.00316.33
7.3.300.0060.00016.35
7.3.290.0050.00916.43
7.3.280.0080.00716.33
7.3.270.0040.01317.40
7.3.260.0100.00716.47
7.3.250.0100.00916.39
7.3.240.0100.01016.55
7.3.230.0130.01016.45
7.3.210.0070.01416.58
7.3.200.0070.01019.39
7.3.190.0060.01516.34
7.3.180.0100.00616.60
7.3.170.0110.00716.47
7.3.160.0050.01016.49
7.3.120.0060.01014.74
7.3.110.0100.00415.02
7.3.100.0000.01714.92
7.3.90.0030.01314.63
7.3.80.0060.00914.81
7.3.70.0060.00314.75
7.3.60.0090.00614.77
7.3.50.0040.00714.64
7.3.40.0090.00614.85
7.3.30.0100.00614.91
7.3.20.0040.01116.67
7.3.10.0070.00716.70
7.3.00.0100.00316.77
7.2.330.0130.00416.41
7.2.320.0040.01316.80
7.2.310.0160.00616.75
7.2.300.0000.01616.71
7.2.290.0040.01216.73
7.2.250.0040.01414.69
7.2.240.0100.00714.77
7.2.230.0080.00815.05
7.2.220.0030.01015.17
7.2.210.0120.00415.02
7.2.200.0000.00915.09
7.2.190.0060.00314.78
7.2.180.0070.00715.20
7.2.170.0060.01015.20
7.1.330.0000.01515.77
7.1.320.0000.00915.94
7.1.310.0040.01115.76
7.1.300.0030.01015.60
7.1.290.0070.01015.66
7.1.280.0060.01015.88
7.1.270.0040.00715.82
7.1.260.0070.00715.68
7.1.200.0100.00315.66
7.1.70.0030.00617.13
7.1.60.0100.01019.82
7.1.50.0070.01716.70
7.1.00.0030.07722.48
7.0.200.0000.00716.71
7.0.140.0030.07321.95
7.0.60.0130.04721.55
7.0.50.0030.06717.80
7.0.40.0130.08020.13
7.0.30.0300.07720.26
7.0.20.0470.06720.16
7.0.10.0000.09020.22
7.0.00.0070.09020.16
5.6.280.0000.07720.87
5.6.210.0230.06020.70
5.6.200.0200.06718.18
5.6.190.0000.04720.76
5.6.180.0400.08320.77
5.6.170.0270.04720.39
5.6.160.0070.06320.39
5.6.150.0070.03718.28
5.6.140.0030.06318.21
5.6.130.0100.08018.16
5.6.120.0030.09021.04
5.6.110.0030.04321.09
5.6.100.0070.08321.00
5.6.90.0130.08320.97
5.6.80.0070.05320.40
5.5.350.3930.04320.45
5.5.340.0100.05018.08
5.5.330.0000.06020.43
5.5.320.0300.07320.27
5.5.310.0300.07320.35
5.5.300.0070.04317.98
5.5.290.0100.05318.04
5.5.280.0030.08320.80
5.5.270.0200.07020.84
5.5.260.0170.02720.76
5.5.250.0070.04320.59
5.5.240.0130.08020.36
5.4.450.0530.05319.63
5.4.440.0930.04319.63
5.4.430.0100.05319.52
5.4.420.0130.05719.39
5.4.410.0100.05718.69
5.4.400.0070.05318.79
5.4.390.0130.04718.75
5.4.380.0070.06018.81
5.4.370.0070.05718.62
5.4.360.0200.04718.84
5.4.350.0130.06018.73
5.4.340.0130.05318.51
5.4.320.0060.03812.51
5.4.310.0030.04112.50
5.4.300.0070.03712.50
5.4.290.0090.04212.50
5.4.280.0050.03612.39
5.4.270.0080.03612.40
5.4.260.0130.04718.82
5.4.250.0200.05718.63
5.4.240.0130.05018.74
5.4.230.0130.05318.98
5.4.220.0070.07719.01
5.4.210.0230.04318.90
5.4.200.0070.05018.82
5.4.190.0030.05718.90
5.4.180.0170.07018.69
5.4.170.0070.05318.89
5.4.160.0100.07318.99
5.4.150.0170.04718.96
5.4.140.0100.04716.36
5.4.130.0070.05016.43
5.4.120.0130.04716.36
5.4.110.0100.04716.46
5.4.100.0030.07316.43
5.4.90.0130.04316.43
5.4.80.0170.04016.52
5.4.70.0070.05016.57
5.4.60.0130.04716.55
5.4.50.0070.05016.38
5.4.40.0070.05716.46
5.4.30.0070.05016.44
5.4.20.0130.05016.50
5.4.10.0130.04716.30
5.4.00.0130.04715.83
5.3.290.0080.03612.80
5.3.280.0170.04314.59
5.3.270.0130.06314.85
5.3.260.0130.04714.70
5.3.250.0100.04714.78
5.3.240.0130.04314.59
5.3.230.0100.04714.50
5.3.220.0070.05314.39
5.3.210.0100.05314.40
5.3.200.0100.05314.55
5.3.190.0100.05714.40
5.3.180.0100.06714.65
5.3.170.0100.04714.54
5.3.160.0170.05014.63
5.3.150.0070.05714.63
5.3.140.0070.07314.63
5.3.130.0000.05714.71
5.3.120.0170.07714.63
5.3.110.0030.06314.38
5.3.100.0100.05014.01
5.3.90.0200.03714.16
5.3.80.0070.05314.20
5.3.70.0030.06014.12
5.3.60.0070.07314.17
5.3.50.0100.06713.99
5.3.40.0130.04714.04
5.3.30.0100.05013.89
5.3.20.0100.04313.77
5.3.10.0070.05013.82
5.3.00.0130.04013.71
5.2.170.0200.04311.31
5.2.160.0100.03711.24
5.2.150.0100.05711.22
5.2.140.0070.04011.23
5.2.130.0000.04311.11
5.2.120.0170.02711.32
5.2.110.0030.04311.32
5.2.100.0070.05311.18
5.2.90.0100.03711.09
5.2.80.0030.04711.27
5.2.70.0130.03311.32
5.2.60.0070.04311.27
5.2.50.0070.05311.16
5.2.40.0030.04011.07
5.2.30.0030.05011.15
5.2.20.0030.05710.91
5.2.10.0000.04310.93
5.2.00.0030.04010.88
5.1.60.0070.0309.99
5.1.50.0000.03710.07
5.1.40.0030.03310.05
5.1.30.0130.03310.40
5.1.20.0070.03710.34
5.1.10.0100.04310.13
5.1.00.0070.04010.22
5.0.50.0030.0278.54
5.0.40.0070.0238.61
5.0.30.0000.0478.29
5.0.20.0070.0238.28
5.0.10.0070.0238.01
5.0.00.0000.0438.00
4.4.90.0000.0236.95
4.4.80.0030.0306.95
4.4.70.0000.0336.95
4.4.60.0070.0206.95
4.4.50.0000.0276.95
4.4.40.0000.0376.95
4.4.30.0000.0276.95
4.4.20.0000.0236.95
4.4.10.0100.0136.95
4.4.00.0000.0376.95
4.3.110.0130.0136.95
4.3.100.0030.0236.95
4.3.90.0030.0206.95
4.3.80.0030.0306.95
4.3.70.0000.0236.95
4.3.60.0000.0206.95
4.3.50.0030.0206.95
4.3.40.0030.0336.95
4.3.30.0030.0206.95
4.3.20.0000.0236.95
4.3.10.0000.0236.95
4.3.00.0130.0176.80

preferences:
50.19 ms | 400 KiB | 5 Q