3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_cc() { foreach (debug_backtrace() as $call) { if (!isset($call['class'])) { continue; } return $call['class']; } } class Foo { public function bar() { echo get_cc(), "\n"; } public static function baz() { echo get_cc(), "\n"; } } $foo = new Foo; $foo->bar(); Foo::baz();

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.70.0060.01216.38
8.3.60.0120.00916.38
8.3.50.0210.01117.10
8.3.40.0070.00718.84
8.3.30.0070.00718.68
8.3.20.0080.00018.34
8.3.10.0030.00620.40
8.3.00.0090.00019.23
8.2.180.0060.01216.75
8.2.170.0100.00322.96
8.2.160.0100.00718.64
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00018.71
8.2.110.0050.00521.04
8.2.100.0070.00317.91
8.2.90.0110.00021.02
8.2.80.0050.00219.23
8.2.70.0030.00617.50
8.2.60.0080.00018.05
8.2.50.0060.00318.07
8.2.40.0080.00018.28
8.2.30.0000.01018.23
8.2.20.0000.00819.53
8.2.10.0000.00817.68
8.2.00.0050.00217.63
8.1.280.0130.00725.92
8.1.270.0030.00924.01
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0130.00622.60
8.1.230.0080.00420.84
8.1.220.0030.00517.79
8.1.210.0040.00418.79
8.1.200.0080.00017.36
8.1.190.0040.00417.40
8.1.180.0040.00418.10
8.1.170.0040.00420.47
8.1.160.0040.00419.00
8.1.150.0050.00218.56
8.1.140.0000.00817.51
8.1.130.0040.00417.75
8.1.120.0040.00417.44
8.1.110.0040.00417.50
8.1.100.0000.00717.46
8.1.90.0000.00817.35
8.1.80.0080.00017.45
8.1.70.0000.00817.46
8.1.60.0030.00517.61
8.1.50.0060.00317.44
8.1.40.0040.00417.53
8.1.30.0080.00017.48
8.1.20.0040.00417.49
8.1.10.0000.00817.45
8.1.00.0040.00417.40
8.0.300.0040.00419.89
8.0.290.0070.00016.75
8.0.280.0040.00418.37
8.0.270.0030.00317.20
8.0.260.0000.00916.70
8.0.250.0040.00416.99
8.0.240.0040.00316.93
8.0.230.0070.00016.89
8.0.220.0070.00016.88
8.0.210.0030.00316.92
8.0.200.0030.00317.00
8.0.190.0030.00516.94
8.0.180.0050.00516.92
8.0.170.0040.00416.82
8.0.160.0000.00716.77
8.0.150.0000.00816.86
8.0.140.0040.00416.89
8.0.130.0050.00013.33
8.0.120.0000.00816.89
8.0.110.0040.00416.84
8.0.100.0020.00516.84
8.0.90.0070.00016.75
8.0.80.0140.00616.90
8.0.70.0050.00216.87
8.0.60.0040.00416.86
8.0.50.0000.00716.88
8.0.30.0150.00917.13
8.0.20.0330.01416.98
8.0.10.0040.00416.91
8.0.00.0060.01216.76
7.4.330.0050.00012.98
7.4.320.0000.00616.50
7.4.300.0030.00316.52
7.4.290.0000.00716.65
7.4.280.0040.00416.51
7.4.270.0000.00716.49
7.4.260.0050.00013.39
7.4.250.0040.00416.43
7.4.240.0000.00716.41
7.4.230.0030.00316.49
7.4.220.0090.00916.50
7.4.210.0040.01116.54
7.4.200.0030.00316.36
7.4.190.0020.00516.56
7.4.160.0110.00516.44
7.4.150.0130.00416.57
7.4.140.0040.01516.43
7.4.130.0040.01416.40
7.4.120.0180.00916.33
7.4.110.0130.00716.48
7.4.100.0060.01016.48
7.4.90.0130.01016.54
7.4.80.0140.00516.43
7.4.70.0130.00416.46
7.4.60.0040.01116.38
7.4.50.0000.00816.62
7.4.40.0080.00816.60
7.4.30.0090.00616.39
7.4.00.0100.00615.05
7.3.330.0070.00013.31
7.3.320.0030.00213.18
7.3.310.0040.00416.21
7.3.300.0000.00616.27
7.3.290.0050.00816.30
7.3.280.0120.00316.29
7.3.270.0060.01016.35
7.3.260.0110.00616.42
7.3.250.0130.00516.47
7.3.240.0060.01016.31
7.3.230.0120.00616.53
7.3.210.0070.01016.46
7.3.200.0070.01419.39
7.3.190.0160.00616.35
7.3.180.0070.01016.16
7.3.170.0160.00316.38
7.3.160.0130.00716.23
7.3.120.0050.01014.68
7.3.110.0040.01414.75
7.3.100.0030.00914.74
7.3.90.0030.00615.06
7.3.80.0000.00914.54
7.3.70.0030.01414.88
7.3.60.0040.00814.51
7.3.50.0040.01414.60
7.3.40.0060.01014.64
7.3.30.0090.00314.78
7.3.20.0000.01416.66
7.3.10.0080.00416.48
7.3.00.0030.01216.74
7.2.330.0070.01416.75
7.2.320.0070.01716.74
7.2.310.0090.00816.68
7.2.300.0090.01216.45
7.2.290.0070.01016.70
7.2.250.0120.00615.16
7.2.240.0060.00914.96
7.2.230.0060.00915.31
7.2.220.0000.01115.06
7.2.210.0070.00715.20
7.2.200.0030.01515.05
7.2.190.0070.00715.09
7.2.180.0100.00615.12
7.2.170.0040.00814.88
7.2.00.0030.01019.04
7.1.330.0100.00315.73
7.1.320.0040.00715.68
7.1.310.0000.01416.09
7.1.300.0030.00915.85
7.1.290.0090.00915.71
7.1.280.0030.00715.93
7.1.270.0090.00615.85
7.1.260.0030.00615.73
7.1.100.0030.00818.04
7.1.70.0100.00016.68
7.1.60.0170.00719.31
7.1.50.0090.00916.87
7.1.00.0030.07022.33
7.0.200.0070.01016.80
7.0.140.0000.07322.08
7.0.120.0070.06722.09
7.0.60.0170.07319.91
7.0.50.0100.08317.86
7.0.40.0070.04320.11
7.0.30.0300.07720.19
7.0.20.0330.06720.12
7.0.10.0270.04020.10
7.0.00.0100.08320.32
5.6.210.0200.07320.71
5.6.200.0070.03718.20
5.6.190.0100.08320.65
5.6.180.0230.04320.53
5.6.170.0170.04020.50
5.6.160.0030.07720.54
5.6.150.0130.04018.13
5.6.140.0130.04018.23
5.6.130.0070.06018.22
5.6.120.0200.07021.01
5.6.110.0200.07321.00
5.6.100.0100.07321.09
5.6.90.0030.07320.98
5.6.80.0030.08320.57
5.6.70.0200.05020.39
5.5.350.0330.07320.31
5.5.340.0100.08017.95
5.5.330.0100.07320.42
5.5.320.0170.04020.32
5.5.310.0100.04320.51
5.5.300.0070.07717.95
5.5.290.0130.07317.93
5.5.280.0100.08320.78
5.5.270.0100.08020.84
5.5.260.0000.04320.77
5.5.250.0070.04020.58
5.5.240.0000.08320.13
5.4.450.0030.04719.20
5.4.440.0130.07319.58
5.4.430.0130.07019.24
5.4.420.0170.07019.56
5.4.410.0030.07719.20
5.4.400.0100.05018.88
5.4.390.0070.04719.15
5.4.380.0000.05019.16
5.4.370.0030.08019.24
5.4.360.0100.07319.24
5.4.350.0100.04719.24
5.4.340.0030.05718.88
5.4.320.0030.06718.87
5.4.310.0030.07319.21
5.4.300.0100.07018.92
5.4.290.0030.05319.23
5.4.280.0070.03719.15
5.4.270.0030.03719.16
5.4.260.0030.04019.14
5.4.250.0030.04019.01
5.4.240.0100.03319.07
5.4.230.0100.03319.19
5.4.220.0000.04319.14
5.4.210.0130.03318.84
5.4.200.0030.04019.20
5.4.190.0000.04318.85
5.4.180.0000.04019.19
5.4.170.0070.03318.84
5.4.160.0100.03018.85
5.4.150.0070.03319.10
5.4.140.0030.03316.52
5.4.130.0000.03716.47
5.4.120.0030.03716.46
5.4.110.0070.03316.70
5.4.100.0070.03716.60
5.4.90.0130.02316.51
5.4.80.0000.03716.46
5.4.70.0030.03316.43
5.4.60.0100.03016.43
5.4.50.0070.03016.46
5.4.40.0000.04016.43
5.4.30.0070.03016.42
5.4.20.0000.03716.38
5.4.10.0000.03716.43
5.4.00.0030.04315.95
5.3.290.0070.06314.82
5.3.280.0030.03714.60
5.3.270.0070.03714.68
5.3.260.0000.04314.62
5.3.250.0030.03714.60
5.3.240.0070.03314.64
5.3.230.0100.03014.59
5.3.220.0000.03714.57
5.3.210.0000.04014.71
5.3.200.0030.04014.62
5.3.190.0130.04014.73
5.3.180.0030.03714.56
5.3.170.0070.03314.45
5.3.160.0030.04014.59
5.3.150.0070.03314.56
5.3.140.0130.03314.60
5.3.130.0000.04314.44
5.3.120.0030.03714.55
5.3.110.0030.03714.62
5.3.100.0000.04314.08
5.3.90.0030.06014.05
5.3.80.0170.06314.17
5.3.70.0070.07714.05
5.3.60.0030.05713.93
5.3.50.0070.06713.87
5.3.40.0100.06714.00
5.3.30.0100.06313.90
5.3.20.0100.06313.69
5.3.10.0000.04013.55
5.3.00.0000.04313.65
5.2.170.0030.06311.16
5.2.160.0030.06711.11
5.2.150.0170.02711.21
5.2.140.0100.04711.11
5.2.130.0070.04711.19
5.2.120.0070.05711.06
5.2.110.0030.02711.14
5.2.100.0000.03311.16
5.2.90.0070.02311.06
5.2.80.0070.05011.14
5.2.70.0070.03011.25
5.2.60.0030.04011.21
5.2.50.0070.05311.05
5.2.40.0030.05311.07
5.2.30.0170.02710.93
5.2.20.0000.05010.88
5.2.10.0070.05710.76
5.2.00.0130.05310.77
5.1.60.0100.03310.06
5.1.50.0100.0209.91
5.1.40.0070.02710.03
5.1.30.0000.03710.34
5.1.20.0000.05310.25
5.1.10.0000.06310.16
5.1.00.0000.04310.10
5.0.50.0030.0338.62
5.0.40.0030.0238.48
5.0.30.0030.0308.25
5.0.20.0030.0438.36
5.0.10.0000.0478.20
5.0.00.0070.0308.16
4.4.90.0000.0238.10
4.4.80.0030.0378.10
4.4.70.0070.0138.10
4.4.60.0000.0178.10
4.4.50.0030.0338.10
4.4.40.0030.0278.10
4.4.30.0000.0178.10
4.4.20.0000.0208.10
4.4.10.0070.0278.10
4.4.00.0000.0378.10
4.3.110.0000.0178.10
4.3.100.0070.0308.10
4.3.90.0070.0338.10
4.3.80.0000.0338.10
4.3.70.0070.0138.10
4.3.60.0070.0308.10
4.3.50.0030.0178.10
4.3.40.0000.0578.10
4.3.30.0030.0308.10
4.3.20.0000.0178.10
4.3.10.0030.0238.10
4.3.00.0000.0338.10

preferences:
40.99 ms | 401 KiB | 5 Q