3v4l.org

run code in 500+ PHP versions simultaneously
<?php class questions { public function index( $from = null ) { if ( $from != 'test' ) { return $this->test(); } return 'sth'; } public function test(){ function myfunc(){} return $this->index(__FUNCTION__); } } class tags extends questions { public function index () { return parent::index(); } } $obj = new tags; echo $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.5.30.0100.00719.40
8.5.20.0110.00820.21
8.5.10.0120.00616.59
8.5.00.0120.01019.99
8.4.180.0140.00819.55
8.4.170.0140.00823.53
8.4.160.0090.01223.70
8.4.150.0080.00516.78
8.4.140.0130.01517.54
8.4.130.0110.01017.97
8.4.120.0110.00920.80
8.4.110.0070.00322.51
8.4.100.0100.01117.70
8.4.90.0130.00818.61
8.4.80.0080.00118.66
8.4.70.0090.00717.70
8.4.60.0110.00920.48
8.4.50.0110.00918.72
8.4.40.0130.00719.26
8.4.30.0120.00817.69
8.4.20.0170.00317.79
8.4.10.0040.00419.54
8.3.300.0040.00620.81
8.3.290.0080.00520.12
8.3.280.0140.00718.32
8.3.270.0080.01116.89
8.3.260.0070.01216.38
8.3.250.0100.00718.86
8.3.240.0100.00916.42
8.3.230.0100.00916.59
8.3.220.0100.00917.29
8.3.210.0130.00518.53
8.3.200.0040.00516.91
8.3.190.0110.00816.92
8.3.180.0140.00418.79
8.3.170.0100.01022.29
8.3.160.0110.00717.20
8.3.150.0070.01120.84
8.3.140.0090.00016.61
8.3.130.0150.00018.51
8.3.120.0000.00920.74
8.3.110.0000.00920.94
8.3.100.0060.00324.06
8.3.90.0040.01126.77
8.3.80.0070.00319.36
8.3.70.0120.00316.50
8.3.60.0040.01118.43
8.3.50.0180.01016.42
8.3.40.0070.00718.62
8.3.30.0090.00618.53
8.3.20.0000.00820.30
8.3.10.0000.00823.53
8.3.00.0080.00020.61
8.2.300.0120.00917.99
8.2.290.0110.00720.13
8.2.280.0090.01018.48
8.2.270.0090.00917.09
8.2.260.0080.00018.59
8.2.250.0040.00418.34
8.2.240.0060.00317.18
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0030.00526.77
8.2.200.0060.00318.88
8.2.190.0110.00718.15
8.2.180.0070.00718.29
8.2.170.0110.00422.96
8.2.160.0110.00422.25
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00022.08
8.2.120.0080.00026.35
8.2.110.0030.00622.26
8.2.100.0050.00517.59
8.2.90.0060.00318.97
8.2.80.0090.00017.97
8.2.70.0040.00417.47
8.2.60.0000.00717.91
8.2.50.0030.00518.07
8.2.40.0000.00718.10
8.2.30.0040.00417.84
8.2.20.0000.00817.81
8.2.10.0040.00418.02
8.2.00.0040.00417.84
8.1.340.0100.00919.73
8.1.330.0120.00721.74
8.1.320.0120.00718.15
8.1.310.0030.00716.57
8.1.300.0110.00720.05
8.1.290.0090.00030.84
8.1.280.0060.01225.92
8.1.270.0030.00723.95
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0090.00020.57
8.1.230.0070.00417.77
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00717.10
8.1.190.0040.00416.88
8.1.180.0080.00018.10
8.1.170.0000.00918.66
8.1.160.0030.00518.64
8.1.150.0050.00319.95
8.1.140.0050.00319.39
8.1.130.0040.00418.70
8.1.120.0030.00517.39
8.1.110.0040.00417.33
8.1.100.0050.00317.27
8.1.90.0000.01017.29
8.1.80.0040.00417.33
8.1.70.0000.00917.35
8.1.60.0050.00217.52
8.1.50.0040.00417.42
8.1.40.0000.00817.33
8.1.30.0040.00417.42
8.1.20.0030.00517.52
8.1.10.0080.00017.28
8.1.00.0040.00417.21
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.31
8.0.270.0070.00017.17
8.0.260.0030.00316.67
8.0.250.0030.00316.93
8.0.240.0040.00416.76
8.0.230.0070.00016.78
8.0.220.0030.00316.77
8.0.210.0030.00316.79
8.0.200.0000.01216.96
8.0.190.0000.00816.75
8.0.180.0000.00716.82
8.0.170.0000.00816.81
8.0.160.0000.00816.92
8.0.150.0050.00316.74
8.0.140.0000.00816.85
8.0.130.0000.00513.22
8.0.120.0000.00716.70
8.0.110.0000.00716.73
8.0.100.0020.00516.87
8.0.90.0000.00716.94
8.0.80.0040.01116.86
8.0.70.0030.00516.76
8.0.60.0050.00216.70
8.0.50.0070.00016.80
8.0.30.0130.00516.94
8.0.20.0130.01017.40
8.0.10.0040.00416.87
8.0.00.0130.00416.71
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0030.00316.50
7.4.290.0040.00416.48
7.4.280.0040.00416.51
7.4.270.0080.00016.50
7.4.260.0050.00013.34
7.4.250.0030.00616.52
7.4.240.0030.00516.51
7.4.230.0070.00016.59
7.4.220.0140.00716.72
7.4.210.0030.01016.62
7.4.200.0000.00716.30
7.4.160.0110.00816.48
7.4.150.0090.00917.40
7.4.140.0070.01117.86
7.4.130.0090.00916.52
7.4.120.0110.01616.51
7.4.110.0100.00616.69
7.4.100.0100.00616.60
7.4.90.0070.01016.49
7.4.80.0120.01119.39
7.4.70.0030.01416.38
7.4.60.0060.01216.45
7.4.50.0070.00716.38
7.4.40.0030.01316.30
7.4.30.0120.00316.74
7.4.00.0030.01415.04
7.3.330.0000.00513.38
7.3.320.0060.00013.33
7.3.310.0030.00316.20
7.3.300.0070.00016.30
7.3.290.0050.00916.31
7.3.280.0100.00916.29
7.3.270.0150.00317.40
7.3.260.0100.00716.36
7.3.250.0120.00616.28
7.3.240.0090.00816.44
7.3.230.0100.00616.45
7.3.210.0030.02016.41
7.3.200.0060.00916.48
7.3.190.0060.00916.46
7.3.180.0060.01616.41
7.3.170.0100.00616.29
7.3.160.0130.00316.29
7.3.10.0150.00816.45
7.3.00.0130.00716.39
7.2.330.0120.00616.71
7.2.320.0040.01816.45
7.2.310.0030.01316.48
7.2.300.0180.00616.62
7.2.290.0060.01116.56
7.2.130.0110.00716.79
7.2.120.0030.00916.95
7.2.110.0110.00616.90
7.2.100.0060.00616.87
7.2.90.0130.00316.80
7.2.80.0070.00716.61
7.2.70.0070.00716.84
7.2.60.0100.00716.91
7.2.50.0060.00616.63
7.2.40.0070.00716.82
7.2.30.0080.00716.69
7.2.20.0090.00616.86
7.2.10.0130.00616.54
7.2.00.0030.00918.00
7.1.250.0110.00715.52
7.1.200.0120.00015.47
7.1.70.0040.01117.13
7.1.60.0170.01334.90
7.1.50.0170.01034.74
7.1.40.0170.01034.29
7.1.30.0200.00734.09
7.1.20.0130.01334.59
7.1.10.0030.01016.44
7.1.00.0030.01016.46
7.0.200.0070.00716.80
7.0.190.0070.00716.75
7.0.180.0000.01016.02
7.0.170.0030.01015.89
7.0.160.0030.01016.04
7.0.150.0030.01016.00
7.0.140.0000.01016.11
7.0.130.0000.01016.60
7.0.120.0000.01016.23
7.0.110.0070.00316.14
7.0.100.0030.00716.18
7.0.90.0030.01016.23
7.0.80.0000.01016.48
7.0.70.0000.01316.23
7.0.60.0100.00316.23
7.0.50.0030.01016.20
7.0.40.0000.01316.63
7.0.30.0030.00716.32
7.0.20.0000.01016.38
7.0.10.0100.00316.11
7.0.00.0000.01316.24

preferences:
45.85 ms | 1541 KiB | 4 Q