3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myclass{ public static $i = 0; public function one($called_from = null){ $this->three($called_from); self::$i += 1; echo self::$i; } public function two(){ return one(__FUNCTION__); } public function three($called_from){ if ( $called_from != 'two'){ return $this->two(); } } } $obj = new myclass; $obj->one();

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.0060.00916.63
8.3.50.0070.00716.38
8.3.40.0090.00618.74
8.3.30.0100.00718.79
8.3.20.0070.00020.06
8.3.10.0040.00421.94
8.3.00.0100.00017.78
8.2.180.0140.00716.38
8.2.170.0090.00622.96
8.2.160.0130.00020.57
8.2.150.0050.00224.18
8.2.140.0050.00224.66
8.2.130.0000.00819.28
8.2.120.0000.00726.35
8.2.110.0060.00320.44
8.2.100.0070.00418.09
8.2.90.0040.00417.88
8.2.80.0040.00418.90
8.2.70.0080.00017.63
8.2.60.0050.00517.63
8.2.50.0050.00317.80
8.2.40.0060.00317.93
8.2.30.0000.00921.09
8.2.20.0040.00418.11
8.2.10.0000.00718.10
8.2.00.0040.00417.92
8.1.280.0170.00025.92
8.1.270.0040.00422.19
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0070.00420.64
8.1.230.0040.00720.70
8.1.220.0030.00518.56
8.1.210.0000.00818.77
8.1.200.0000.00917.13
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00917.62
8.1.160.0050.00218.92
8.1.150.0000.00718.88
8.1.140.0050.00319.48
8.1.130.0030.00318.94
8.1.120.0000.00717.45
8.1.110.0000.00817.41
8.1.100.0000.00817.46
8.1.90.0070.00417.45
8.1.80.0040.00417.47
8.1.70.0030.00317.38
8.1.60.0040.00417.58
8.1.50.0080.00017.46
8.1.40.0040.00417.44
8.1.30.0020.00517.59
8.1.20.0040.00417.64
8.1.10.0050.00317.64
8.1.00.0000.00717.43
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00618.44
8.0.270.0030.00317.30
8.0.260.0000.00616.82
8.0.250.0000.00716.98
8.0.240.0070.00317.00
8.0.230.0070.00316.94
8.0.220.0070.00016.95
8.0.210.0040.00416.96
8.0.200.0040.00416.91
8.0.190.0080.00016.98
8.0.180.0050.00217.06
8.0.170.0030.00316.97
8.0.160.0060.00616.96
8.0.150.0000.00716.94
8.0.140.0030.00516.85
8.0.130.0070.00013.39
8.0.120.0050.00216.89
8.0.110.0050.00316.77
8.0.100.0040.00416.89
8.0.90.0050.00216.84
8.0.80.0090.00616.90
8.0.70.0040.00416.91
8.0.60.0000.00816.91
8.0.50.0000.00716.91
8.0.30.0030.01417.16
8.0.20.0090.00917.40
8.0.10.0060.00317.15
8.0.00.0100.00717.06
7.4.330.0000.00515.55
7.4.320.0000.00616.45
7.4.300.0030.00316.49
7.4.290.0070.00316.61
7.4.280.0000.00716.49
7.4.270.0050.00316.49
7.4.260.0050.00013.23
7.4.250.0040.00416.46
7.4.240.0050.00216.52
7.4.230.0070.00016.40
7.4.220.0030.00316.41
7.4.210.0050.00916.60
7.4.200.0000.00716.59
7.4.160.0130.00516.41
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0090.00916.57
7.4.120.0090.00916.47
7.4.110.0130.00616.52
7.4.100.0030.01316.57
7.4.90.0100.00716.47
7.4.80.0100.00619.39
7.4.70.0040.01316.55
7.4.60.0040.01116.55
7.4.50.0070.01016.61
7.4.40.0060.00916.59
7.4.30.0100.01016.42
7.4.00.0030.01314.93
7.3.330.0030.00313.19
7.3.320.0000.00513.39
7.3.310.0000.00716.26
7.3.300.0050.00216.31
7.3.290.0060.00016.32
7.3.280.0100.00616.36
7.3.270.0070.01117.40
7.3.260.0110.00616.45
7.3.250.0090.01216.45
7.3.240.0130.00416.35
7.3.230.0090.00916.35
7.3.210.0070.01016.23
7.3.200.0170.00016.53
7.3.190.0060.01016.71
7.3.180.0100.00616.53
7.3.170.0060.01016.30
7.3.160.0080.00816.21
7.2.330.0070.01016.63
7.2.320.0080.00916.73
7.2.310.0060.00916.37
7.2.300.0080.00916.45
7.2.290.0160.00016.58
7.2.60.0000.01417.06
7.2.00.0060.00919.09
7.1.200.0080.00415.44
7.1.100.0060.00618.22
7.1.70.0040.00416.96
7.1.60.0000.01116.83
7.1.50.0000.01216.80
7.1.40.0000.01816.27
7.1.30.0080.00416.61
7.1.20.0120.00316.70
7.1.10.0030.00616.64
7.1.00.0080.00316.55
7.0.200.0000.00816.88
7.0.190.0080.00316.67
7.0.180.0090.00016.33
7.0.170.0040.00416.42
7.0.160.0040.00416.33
7.0.150.0000.01316.16
7.0.140.0040.00716.18
7.0.130.0030.00716.63
7.0.120.0040.00716.34
7.0.110.0060.01216.61
7.0.100.0070.00416.24
7.0.90.0000.00916.38
7.0.80.0000.01116.42
7.0.70.0000.01116.42
7.0.60.0030.00716.36
7.0.50.0030.01016.47
7.0.40.0000.01415.91
7.0.30.0040.00415.91
7.0.20.0000.00815.91
7.0.10.0000.00915.91
7.0.00.0070.00415.91

preferences:
94.42 ms | 401 KiB | 5 Q