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__); } else { echo 'parent'; } } public function myfunc($called_from){ return $this->$called_from(__FUNCTION__); } } class two extends one{ function index($called_from = null){ if ( $called_from != 'myfunc') { return $this->myfunc(__FUNCTION__); } else { echo 'child'; } } } $obj = new two; $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.4.120.0140.00720.74
8.4.110.0140.00722.46
8.4.100.0140.00517.70
8.4.90.0130.00822.23
8.4.80.0070.00617.88
8.4.70.0100.00917.98
8.4.60.0120.00818.70
8.4.50.0120.00820.42
8.4.40.0130.00723.72
8.4.30.0160.00319.36
8.4.20.0030.01817.64
8.4.10.0060.00319.46
8.3.250.0120.00720.90
8.3.240.0110.00816.51
8.3.230.0110.00816.48
8.3.220.0100.00919.05
8.3.210.0100.00816.61
8.3.200.0070.00216.63
8.3.190.0120.00618.70
8.3.180.0110.00818.36
8.3.170.0140.00417.18
8.3.160.0110.00718.30
8.3.150.0090.00916.56
8.3.140.0060.00317.30
8.3.130.0030.00618.46
8.3.120.0030.00518.37
8.3.110.0040.00418.23
8.3.100.0030.00618.32
8.3.90.0080.00026.77
8.3.80.0070.00319.36
8.3.70.0140.00716.50
8.3.60.0120.00318.43
8.3.50.0100.01016.58
8.3.40.0110.00718.64
8.3.30.0110.00318.38
8.3.20.0000.00818.93
8.3.10.0050.00321.95
8.3.00.0000.00819.54
8.2.290.0140.00420.46
8.2.280.0080.00618.55
8.2.270.0150.00417.30
8.2.260.0120.00616.66
8.2.250.0030.00718.32
8.2.240.0120.00818.80
8.2.230.0060.00320.94
8.2.220.0070.00324.06
8.2.210.0060.01226.77
8.2.200.0090.00018.88
8.2.190.0090.00618.39
8.2.180.0150.00316.50
8.2.170.0060.00922.96
8.2.160.0140.00320.48
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00820.52
8.2.120.0060.00326.35
8.2.110.0070.00322.25
8.2.100.0080.00317.78
8.2.90.0030.00517.72
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0030.00617.80
8.2.50.0000.00818.10
8.2.40.0000.00822.23
8.2.30.0040.00421.04
8.2.20.0050.00218.11
8.2.10.0000.00718.06
8.2.00.0050.00317.97
8.1.330.0100.00921.82
8.1.320.0110.00716.16
8.1.310.0140.00318.19
8.1.300.0150.00017.77
8.1.290.0030.00630.84
8.1.280.0110.01125.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0090.00023.98
8.1.230.0040.00720.79
8.1.220.0060.00317.74
8.1.210.0060.00318.85
8.1.200.0050.00517.34
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.72
8.1.160.0040.00418.90
8.1.150.0000.00718.84
8.1.140.0040.00419.55
8.1.130.0000.00718.91
8.1.120.0030.00317.36
8.1.110.0050.00317.45
8.1.100.0000.00817.49
8.1.90.0040.00417.45
8.1.80.0040.00417.38
8.1.70.0040.00417.44
8.1.60.0080.00017.54
8.1.50.0030.00517.52
8.1.40.0000.00817.40
8.1.30.0040.00417.57
8.1.20.0000.01017.68
8.1.10.0000.00917.57
8.1.00.0030.00717.51
8.0.300.0050.00220.04
8.0.290.0070.00016.63
8.0.280.0000.00718.44
8.0.270.0030.00316.68
8.0.260.0030.00316.87
8.0.250.0040.00416.93
8.0.240.0060.00316.93
8.0.230.0030.00316.80
8.0.220.0000.00716.85
8.0.210.0070.00016.86
8.0.200.0030.00317.00
8.0.190.0000.00916.95
8.0.180.0000.00716.87
8.0.170.0000.00716.90
8.0.160.0050.00316.80
8.0.150.0000.00816.88
8.0.140.0030.00316.79
8.0.130.0030.00313.27
8.0.120.0000.00816.90
8.0.110.0040.00416.93
8.0.100.0040.00416.92
8.0.90.0050.00216.84
8.0.80.0110.00816.83
8.0.70.0050.00316.84
8.0.60.0000.00816.84
8.0.50.0040.00416.94
8.0.30.0080.00917.00
8.0.20.0120.00717.40
8.0.10.0050.00216.95
8.0.00.0140.00316.64
7.4.330.0000.00515.55
7.4.320.0060.00016.61
7.4.300.0030.00316.59
7.4.290.0100.00016.48
7.4.280.0090.00016.47
7.4.270.0040.00416.61
7.4.260.0000.00713.17
7.4.250.0040.00416.38
7.4.240.0000.00716.66
7.4.230.0020.00516.33
7.4.220.0070.00016.66
7.4.210.0090.01216.46
7.4.200.0040.00416.36
7.4.160.0060.01016.58
7.4.150.0040.01417.40
7.4.140.0070.01217.86
7.4.130.0110.00816.76
7.4.120.0070.01116.46
7.4.110.0120.00316.38
7.4.100.0120.00616.42
7.4.90.0000.01816.54
7.4.80.0090.00919.39
7.4.70.0080.01116.46
7.4.60.0100.00716.31
7.4.50.0060.00916.36
7.4.40.0140.00416.54
7.4.30.0070.01016.57
7.4.00.0070.01015.01
7.3.330.0030.00313.09
7.3.320.0000.00513.02
7.3.310.0030.00316.20
7.3.300.0000.00616.20
7.3.290.0060.00916.28
7.3.280.0080.00916.24
7.3.270.0110.00517.40
7.3.260.0110.00716.32
7.3.250.0110.00916.38
7.3.240.0130.00516.35
7.3.230.0110.00616.24
7.3.210.0120.00616.31
7.3.200.0090.00616.25
7.3.190.0110.00516.27
7.3.180.0150.00616.38
7.3.170.0060.01316.42
7.3.160.0050.01016.27
7.2.330.0140.00616.72
7.2.320.0080.00916.33
7.2.310.0120.00916.50
7.2.300.0140.00316.55
7.2.290.0000.01716.76
7.2.60.0060.00616.78
7.2.00.0030.01319.50
7.1.200.0040.00815.84
7.1.100.0030.01017.87
7.1.70.1100.01315.20
7.1.60.1470.01333.07
7.1.50.1370.01732.87
7.1.40.1570.01332.17
7.1.30.1030.01732.59
7.1.20.1700.01332.81
7.1.10.1000.01314.80
7.1.00.0970.00314.61
7.0.200.1930.00714.82
7.0.190.0870.01714.63
7.0.180.1530.01014.47
7.0.170.1130.00314.36
7.0.160.1070.01714.25
7.0.150.1070.01314.36
7.0.140.1400.01014.43
7.0.130.1000.00714.82
7.0.120.0900.01314.61
7.0.110.1270.01314.33
7.0.100.1230.00714.68
7.0.90.1170.01314.43
7.0.80.1470.01314.67
7.0.70.1000.01014.60
7.0.60.1000.01014.16
7.0.50.1070.01014.21
7.0.40.1330.01314.74
7.0.30.1170.01314.51
7.0.20.1230.01314.59
7.0.10.1030.01014.59
7.0.00.1100.01014.69

preferences:
120.78 ms | 403 KiB | 5 Q