3v4l.org

run code in 300+ PHP versions simultaneously
<?php class one{ public function index($called_from = null){ if ( $called_from != 'myfunc') { return $this->myfunc(__FUNCTION__); } echo 'parent'; } public function myfunc($called_from){ return $this->index(__FUNCTION__); } } class two extends one{ function index($called_from = null){ if ( $called_from != 'myfunc') { return $this->myfunc(__FUNCTION__); } echo 'child'; } } $obj = new one; $obj->index();

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.0090.00616.75
8.3.50.0040.01116.50
8.3.40.0120.00318.68
8.3.30.0040.01118.77
8.3.20.0070.00720.30
8.3.10.0040.00421.84
8.3.00.0060.00317.41
8.2.180.0140.00416.75
8.2.170.0060.00922.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0140.00026.16
8.2.120.0000.00819.72
8.2.110.0100.00022.24
8.2.100.0100.00017.78
8.2.90.0050.00517.87
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0080.00018.04
8.2.50.0000.00918.16
8.2.40.0000.00820.39
8.2.30.0080.00020.95
8.2.20.0040.00418.08
8.2.10.0070.00017.93
8.2.00.0000.00818.05
8.1.280.0070.00725.92
8.1.270.0040.00423.87
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0080.00022.22
8.1.230.0060.00620.89
8.1.220.0030.00517.76
8.1.210.0030.00619.04
8.1.200.0090.00017.36
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0050.00318.33
8.1.160.0000.00719.00
8.1.150.0040.00418.80
8.1.140.0000.00719.46
8.1.130.0040.00418.84
8.1.120.0000.00717.50
8.1.110.0070.00017.49
8.1.100.0030.00517.34
8.1.90.0040.00417.37
8.1.80.0070.00017.50
8.1.70.0030.00317.45
8.1.60.0090.00017.60
8.1.50.0000.00717.36
8.1.40.0040.00417.55
8.1.30.0050.00317.61
8.1.20.0000.00917.66
8.1.10.0030.00517.46
8.1.00.0000.00717.53
8.0.300.0040.00419.94
8.0.290.0040.00416.63
8.0.280.0070.00018.50
8.0.270.0050.00317.24
8.0.260.0030.00316.80
8.0.250.0070.00016.98
8.0.240.0030.00616.89
8.0.230.0030.00316.91
8.0.220.0000.00616.84
8.0.210.0050.00316.87
8.0.200.0040.00416.83
8.0.190.0040.00416.93
8.0.180.0000.00816.89
8.0.170.0000.00816.88
8.0.160.0030.00616.94
8.0.150.0000.00716.87
8.0.140.0070.00016.87
8.0.130.0030.00313.38
8.0.120.0040.00416.87
8.0.110.0030.00416.89
8.0.100.0030.00516.90
8.0.90.0040.00416.75
8.0.80.0190.00316.89
8.0.70.0050.00216.86
8.0.60.0000.00716.89
8.0.50.0080.00016.84
8.0.30.0100.00817.15
8.0.20.0120.00817.40
8.0.10.0000.00717.02
8.0.00.0100.00716.86
7.4.330.0000.00515.55
7.4.320.0060.00016.50
7.4.300.0030.00316.63
7.4.290.0000.00816.59
7.4.280.0080.00016.61
7.4.270.0030.00316.64
7.4.260.0000.00613.33
7.4.250.0080.00016.39
7.4.240.0000.00916.51
7.4.230.0000.00716.39
7.4.220.0100.00716.52
7.4.210.0070.00716.71
7.4.200.0050.00316.59
7.4.160.0090.01116.37
7.4.150.0180.00017.40
7.4.140.0090.01017.86
7.4.130.0120.00616.47
7.4.120.0090.00916.55
7.4.110.0140.00316.51
7.4.100.0070.01616.70
7.4.90.0130.00416.53
7.4.80.0100.01319.39
7.4.70.0100.00616.41
7.4.60.0060.01016.46
7.4.50.0070.00716.58
7.4.40.0030.01316.46
7.4.30.0100.00716.46
7.4.00.0090.00615.00
7.3.330.0060.00013.11
7.3.320.0050.00013.25
7.3.310.0000.00816.09
7.3.300.0030.00316.20
7.3.290.0120.00516.22
7.3.280.0080.00816.25
7.3.270.0140.00317.40
7.3.260.0120.00916.40
7.3.250.0140.00516.34
7.3.240.0040.01416.38
7.3.230.0120.00416.37
7.3.210.0120.00616.48
7.3.200.0100.00716.63
7.3.190.0060.01216.38
7.3.180.0060.00916.50
7.3.170.0060.00916.31
7.3.160.0150.00816.15
7.2.330.0130.01016.62
7.2.320.0060.01016.63
7.2.310.0110.00716.71
7.2.300.0100.00716.62
7.2.290.0000.01616.57
7.2.60.0030.01117.10
7.1.200.0080.00615.65
7.1.70.0120.00617.16
7.1.60.0170.02335.13
7.1.50.0230.01734.78
7.1.40.0160.01734.41
7.1.30.0220.01034.25
7.1.20.0130.01634.52
7.1.10.0040.01416.48
7.1.00.0040.01116.29
7.0.200.0030.01416.55
7.0.190.0070.01316.61
7.0.180.0140.00316.22
7.0.170.0030.01216.25
7.0.160.0090.00616.06
7.0.150.0060.01216.19
7.0.140.0060.01016.37
7.0.130.0000.01516.48
7.0.120.0090.00616.56
7.0.110.0090.00616.30
7.0.100.0040.01216.54
7.0.90.0060.00916.18
7.0.80.0070.01616.23
7.0.70.0000.01816.29
7.0.60.0060.00815.93
7.0.50.0030.01016.39
7.0.40.0070.01016.68
7.0.30.0030.01316.51
7.0.20.0110.00716.34
7.0.10.0060.01316.46
7.0.00.0060.01316.36

preferences:
50.29 ms | 400 KiB | 5 Q