3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function __construct($b = NULL) { if ($b) $this->b = $b; else $this->b = new b($this); $this->b->test(); } public function test() { echo ($this->b !== NULL) ? __METHOD__.":: b not NULL\n" : __METHOD__." :: b NULL\n"; } } class b { function __construct($a = NULL) { if ($a) $this->a = $a; else $this->a = new a($this); $this->a->test(); } public function test() { echo ($this->a !== NULL) ? __METHOD__.":: a not NULL\n" : __METHOD__." :: a NULL\n"; } } new a;

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.0110.01118.55
8.3.50.0130.00521.90
8.3.40.0150.00018.85
8.3.30.0110.00419.05
8.3.20.0040.00420.21
8.3.10.0040.00422.02
8.3.00.0070.00022.31
8.2.180.0080.00616.75
8.2.170.0110.00422.96
8.2.160.0070.01020.93
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00817.63
8.2.110.0070.00322.11
8.2.100.0070.00717.74
8.2.90.0080.00019.08
8.2.80.0000.00817.97
8.2.70.0000.00917.38
8.2.60.0030.00817.78
8.2.50.0060.00318.07
8.2.40.0040.00718.02
8.2.30.0040.00418.04
8.2.20.0030.00517.64
8.2.10.0070.00017.43
8.2.00.0000.00717.53
8.1.280.0060.00925.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.75
8.1.230.0070.00319.17
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00517.51
8.1.180.0040.00418.58
8.1.170.0060.00318.65
8.1.160.0040.00422.04
8.1.150.0040.00418.50
8.1.140.0000.00817.32
8.1.130.0000.00717.63
8.1.120.0000.01017.31
8.1.110.0020.00517.32
8.1.100.0000.00717.29
8.1.90.0000.00717.40
8.1.80.0000.00817.41
8.1.70.0030.00317.37
8.1.60.0000.00917.50
8.1.50.0000.00717.52
8.1.40.0050.00317.38
8.1.30.0040.00417.51
8.1.20.0040.00417.55
8.1.10.0030.00517.59
8.1.00.0030.00617.39
8.0.300.0000.00718.77
8.0.290.0040.00417.13
8.0.280.0040.00418.35
8.0.270.0030.00317.12
8.0.260.0040.00416.78
8.0.250.0000.00717.01
8.0.240.0070.00016.89
8.0.230.0000.00716.77
8.0.220.0000.00716.80
8.0.210.0040.00416.86
8.0.200.0030.00316.94
8.0.190.0070.00016.76
8.0.180.0030.00516.80
8.0.170.0040.00416.86
8.0.160.0000.00816.83
8.0.150.0070.00016.74
8.0.140.0040.00416.72
8.0.130.0000.00513.17
8.0.120.0000.00816.83
8.0.110.0040.00416.84
8.0.100.0000.00716.71
8.0.90.0020.00516.70
8.0.80.0030.01316.85
8.0.70.0070.00016.93
8.0.60.0030.00316.75
8.0.50.0040.00416.79
8.0.30.0130.01317.21
8.0.20.0110.01017.40
8.0.10.0000.00716.82
8.0.00.0110.00816.75
7.4.330.0050.00015.00
7.4.320.0000.00616.59
7.4.300.0060.00016.45
7.4.290.0070.00016.44
7.4.280.0030.00316.47
7.4.270.0030.00316.49
7.4.260.0050.00516.52
7.4.250.0000.00816.43
7.4.240.0040.00416.40
7.4.230.0050.00316.64
7.4.220.0070.01016.61
7.4.210.0050.01116.55
7.4.200.0030.00316.63
7.4.190.0040.00316.57
7.4.160.0060.01016.46
7.4.150.0100.00717.40
7.4.140.0100.01417.86
7.4.130.0100.00716.52
7.4.120.0080.01016.49
7.4.110.0130.00316.54
7.4.100.0090.00916.33
7.4.90.0100.01316.41
7.4.80.0050.01219.39
7.4.70.0090.00916.64
7.4.60.0070.01316.47
7.4.50.0080.00016.52
7.4.40.0110.00722.77
7.4.30.0160.00016.52
7.4.00.0020.01714.96
7.3.330.0030.00313.19
7.3.320.0050.00013.36
7.3.310.0030.00316.37
7.3.300.0030.00316.29
7.3.290.0040.01116.35
7.3.280.0090.00716.39
7.3.270.0100.00717.40
7.3.260.0110.01216.36
7.3.250.0140.00616.28
7.3.240.0070.00816.46
7.3.230.0100.01316.49
7.3.210.0090.00916.61
7.3.200.0180.00019.39
7.3.190.0030.01416.58
7.3.180.0090.00616.37
7.3.170.0120.00316.58
7.3.160.0090.00916.45
7.3.120.0090.00814.92
7.3.110.0080.00414.97
7.3.100.0030.01014.60
7.3.90.0050.00514.83
7.3.80.0050.00514.90
7.3.70.0030.01214.66
7.3.60.0120.00014.92
7.3.50.0060.00914.74
7.3.40.0090.00614.86
7.3.30.0040.00714.62
7.3.20.0040.00916.76
7.3.10.0000.01416.37
7.3.00.0000.01616.68
7.2.330.0100.00716.47
7.2.320.0090.00616.80
7.2.310.0120.00616.82
7.2.300.0140.00316.59
7.2.290.0090.00916.48
7.2.250.0070.01315.06
7.2.240.0180.00014.55
7.2.230.0080.00815.14
7.2.220.0110.00615.21
7.2.210.0090.00614.65
7.2.200.0090.00614.98
7.2.190.0070.00715.02
7.2.180.0140.00415.01
7.2.170.0090.00315.31
7.2.60.0130.00016.75
7.2.00.0070.00719.18
7.1.330.0040.01115.76
7.1.320.0030.01315.86
7.1.310.0030.01015.66
7.1.300.0080.00515.53
7.1.290.0110.00315.52
7.1.280.0030.00915.82
7.1.270.0090.00415.65
7.1.260.0030.01315.62
7.1.200.0000.01615.55
7.1.100.0080.00318.15
7.1.70.0000.00717.24
7.1.60.0090.01519.82
7.1.50.0070.01717.14
7.1.00.0070.06722.45
7.0.200.0030.00716.55
7.0.140.0070.07021.99
7.0.60.0030.08019.82
7.0.50.0030.04017.89
7.0.40.0130.03720.23
7.0.30.0330.07720.13
7.0.20.0370.04720.08
7.0.10.0030.05020.26
7.0.00.0070.08320.29
5.6.280.0100.06720.79
5.6.210.0100.08720.52
5.6.200.0030.07718.29
5.6.190.0170.07320.58
5.6.180.0230.05020.61
5.6.170.0130.04320.50
5.6.160.0000.06320.52
5.6.150.0100.04718.12
5.6.140.0000.05318.17
5.6.130.0030.08718.20
5.6.120.0070.08721.13
5.6.110.0070.09021.02
5.6.100.0230.06321.02
5.6.90.0170.07720.97
5.6.80.0130.03020.40
5.5.350.0470.06320.42
5.5.340.0030.08717.96
5.5.330.0000.04720.49
5.5.320.0070.07020.24
5.5.310.0130.05020.30
5.5.300.0130.07317.95
5.5.290.0070.05318.00
5.5.280.0000.05020.88
5.5.270.0070.08320.73
5.5.260.0170.06320.71
5.5.250.0030.08320.69
5.5.240.0300.05320.27
5.4.450.0700.06019.54
5.4.440.0130.06019.61
5.4.430.0030.06019.21
5.4.420.0130.05319.32
5.4.410.0130.05019.53
5.4.400.0970.00018.71
5.4.390.0870.00018.74
5.4.380.0270.05318.80
5.4.370.0200.05718.70
5.4.360.0300.04718.81
5.4.350.0230.06018.80
5.4.340.0400.04318.58
5.4.320.0060.04012.50
5.4.310.0080.04412.50
5.4.300.0060.03612.51
5.4.290.0110.04912.50
5.4.280.0050.03712.40
5.4.270.0070.07319.10
5.4.260.0070.06318.63
5.4.250.0030.06318.94
5.4.240.0170.06719.00
5.4.230.0130.05318.93
5.4.220.0070.05718.96
5.4.210.0200.04318.96
5.4.200.0130.06018.98
5.4.190.0130.05018.61
5.4.180.0030.06018.85
5.4.170.0270.06019.09
5.4.160.0230.04319.10
5.4.150.0130.06718.84
5.4.140.0230.05716.48
5.4.130.0130.05316.60
5.4.120.0170.06316.65
5.4.110.0030.05716.47
5.4.100.0200.04716.68
5.4.90.0030.05316.49
5.4.80.0100.04316.45
5.4.70.0200.04016.59
5.4.60.0170.06016.39
5.4.50.0200.03716.51
5.4.40.0100.04716.52
5.4.30.0070.04716.46
5.4.20.0130.04316.59
5.4.10.0170.06316.49
5.4.00.0130.05315.89
5.3.290.0080.03612.80
5.3.280.0100.06714.77
5.3.270.0100.07014.47
5.3.260.0230.05314.63
5.3.250.0070.06014.66
5.3.240.0130.06714.45
5.3.230.0000.05714.74
5.3.220.0130.06314.56
5.3.210.0070.05314.75
5.3.200.0070.05014.42
5.3.190.0130.05014.40
5.3.180.0100.05714.60
5.3.170.0100.05314.57
5.3.160.0070.04714.71
5.3.150.0100.07314.63
5.3.140.0030.05314.55
5.3.130.0070.06014.72
5.3.120.0070.06314.69
5.3.110.0170.04314.78
5.3.100.0170.06014.03
5.3.90.0000.07714.01
5.3.80.0030.05314.12
5.3.70.0070.05314.02
5.3.60.0100.05314.08
5.3.50.0130.04314.03
5.3.40.0070.05713.92
5.3.30.0070.05713.91
5.3.20.0070.05013.78
5.3.10.0170.04013.73
5.3.00.0130.06713.62
5.2.170.0070.04011.11
5.2.160.0070.04011.14
5.2.150.0100.05311.33
5.2.140.0070.04311.23
5.2.130.0030.04011.02
5.2.120.0070.04011.27
5.2.110.0100.04710.93
5.2.100.0130.03711.33
5.2.90.0030.04311.33
5.2.80.0030.05711.07
5.2.70.0100.03711.29
5.2.60.0100.04311.13
5.2.50.0130.04011.11
5.2.40.0100.03311.07
5.2.30.0000.06011.05
5.2.20.0130.04711.05
5.2.10.0100.04010.96
5.2.00.0100.03710.64
5.1.60.0070.03010.16
5.1.50.0100.04310.05
5.1.40.0130.03010.08
5.1.30.0200.03310.32
5.1.20.0100.04710.42
5.1.10.0070.04010.07
5.1.00.0070.03310.17
5.0.50.0070.0238.64
5.0.40.0070.0278.46
5.0.30.0000.0438.19
5.0.20.0070.0238.12
5.0.10.0100.0277.97
5.0.00.0000.0438.14
4.4.90.0000.0337.31
4.4.80.0000.0237.31
4.4.70.0000.0237.31
4.4.60.0100.0137.31
4.4.50.0030.0307.31
4.4.40.0100.0377.31
4.4.30.0070.0237.31
4.4.20.0100.0207.31
4.4.10.0030.0207.31
4.4.00.0070.0377.31
4.3.110.0030.0207.31
4.3.100.0030.0207.31
4.3.90.0030.0207.31
4.3.80.0070.0377.31
4.3.70.0000.0237.31
4.3.60.0100.0207.31
4.3.50.0070.0237.31
4.3.40.0000.0337.31
4.3.30.0000.0237.31
4.3.20.0130.0207.31
4.3.10.0000.0277.31
4.3.00.0130.0206.99

preferences:
50.64 ms | 401 KiB | 5 Q