3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ function test1(){ test3(); } function test2(){ function test3(){ echo " Inner function\n "; } test3(); } function test4(){ test3(); } } $test = new Test; //$test->test1(); // Генерирует ошибку вида PHP Fatal error: Call to undefined function test3() //$test->test2(); $test->test4(); test3();

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.40.0060.01518.84
8.3.30.0080.00618.69
8.3.20.0070.00020.34
8.3.10.0040.00423.36
8.3.00.0000.00819.79
8.2.170.0110.00422.96
8.2.160.0140.00020.39
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0030.00617.63
8.2.110.0110.00019.39
8.2.100.0110.00017.91
8.2.90.0030.00519.05
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00517.80
8.2.50.0120.00018.07
8.2.40.0040.00419.21
8.2.30.0040.00419.45
8.2.20.0060.00317.63
8.2.10.0070.00018.05
8.2.00.0040.00417.95
8.1.270.0100.01022.20
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0100.01022.14
8.1.230.0110.00017.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0050.00221.89
8.1.150.0040.00418.84
8.1.140.0030.00517.40
8.1.130.0030.00317.70
8.1.120.0000.00717.43
8.1.110.0070.00017.29
8.1.100.0050.00217.42
8.1.90.0000.00717.43
8.1.80.0070.00317.39
8.1.70.0050.00317.33
8.1.60.0030.00617.59
8.1.50.0050.00317.51
8.1.40.0050.00517.52
8.1.30.0060.00317.55
8.1.20.0000.00817.55
8.1.10.0000.00817.54
8.1.00.0030.00617.43
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.30
8.0.270.0030.00317.21
8.0.260.0080.00017.15
8.0.250.0000.00816.95
8.0.240.0030.00517.03
8.0.230.0080.00016.84
8.0.220.0000.00716.76
8.0.210.0030.00316.79
8.0.200.0000.00616.98
8.0.190.0030.00616.86
8.0.180.0060.00316.75
8.0.170.0050.00316.80
8.0.160.0000.00716.91
8.0.150.0030.00316.70
8.0.140.0000.00816.82
8.0.130.0050.00013.28
8.0.120.0040.00416.88
8.0.110.0080.00016.87
8.0.100.0050.00216.69
8.0.90.0070.00016.84
8.0.80.0110.00316.86
8.0.70.0040.00416.76
8.0.60.0040.00416.86
8.0.50.0000.00716.71
8.0.30.0120.00617.15
8.0.20.0100.01317.40
8.0.10.0040.00417.09
8.0.00.0090.01116.85
7.4.330.0000.00515.08
7.4.320.0000.00616.43
7.4.300.0000.00616.61
7.4.290.0030.00316.59
7.4.280.0000.00716.35
7.4.270.0030.00616.61
7.4.260.0030.00316.59
7.4.250.0050.00216.59
7.4.240.0050.00216.58
7.4.230.0040.00416.35
7.4.220.0070.01016.50
7.4.210.0060.01016.58
7.4.200.0030.00316.30
7.4.160.0070.01016.63
7.4.150.0170.00617.40
7.4.140.0100.01217.86
7.4.130.0070.01216.58
7.4.120.0060.01316.50
7.4.110.0160.00716.54
7.4.100.0070.01116.63
7.4.90.0090.00916.39
7.4.80.0030.01419.39
7.4.70.0110.01116.67
7.4.60.0090.00616.36
7.4.50.0030.00616.22
7.4.40.0130.00316.59
7.4.30.0030.01416.50
7.4.00.0100.00715.06
7.3.330.0070.00013.31
7.3.320.0000.00613.18
7.3.310.0070.00016.34
7.3.300.0030.00316.36
7.3.290.0030.00316.46
7.3.280.0100.00916.33
7.3.270.0120.01117.40
7.3.260.0060.01316.66
7.3.250.0090.00816.52
7.3.240.0120.01216.32
7.3.230.0090.00616.57
7.3.210.0040.01216.40
7.3.200.0100.00616.63
7.3.190.0090.00616.28
7.3.180.0060.01516.39
7.3.170.0170.00016.66
7.3.160.0110.00616.50
7.3.10.0000.01116.68
7.3.00.0030.00916.30
7.2.330.0030.01516.52
7.2.320.0180.00316.35
7.2.310.0070.01016.66
7.2.300.0100.00716.67
7.2.290.0120.00616.71
7.2.130.0000.01116.79
7.2.120.0040.01116.92
7.2.110.0000.00916.71
7.2.100.0040.00716.71
7.2.90.0070.01016.80
7.2.80.0030.01516.61
7.2.70.0030.01216.56
7.2.60.0060.00916.70
7.2.50.0000.01416.55
7.2.40.0000.01016.57
7.2.30.0030.01416.86
7.2.20.0070.00416.81
7.2.10.0100.00316.71
7.2.00.0050.00518.06
7.1.250.0030.01015.66
7.1.200.0000.00815.59
7.1.100.0000.01417.95
7.1.70.0000.00816.98
7.1.60.0040.01819.27
7.1.50.0070.01716.57
7.1.00.0070.07322.32
7.0.200.0050.00216.73
7.0.60.0170.07720.04
7.0.50.0100.08317.97
7.0.40.0070.08720.28
7.0.30.0430.06320.23
7.0.20.0230.05320.10
7.0.10.0100.04320.20
7.0.00.0000.07720.07
5.6.280.0070.05720.87
5.6.210.0100.06020.66
5.6.200.0030.04718.29
5.6.190.0100.04320.57
5.6.180.3600.04320.64
5.6.170.0230.03720.50
5.6.160.0070.08720.56
5.6.150.0200.06318.19
5.6.140.0070.08318.16
5.6.130.0100.04318.16
5.6.120.0000.05321.13
5.6.110.0070.06321.02
5.6.100.0100.07721.03
5.6.90.0070.08320.97
5.6.80.0100.07720.39
5.6.70.0370.06720.38
5.5.350.0000.08320.45
5.5.340.0030.08317.93
5.5.330.0100.04720.19
5.5.320.0200.04320.36
5.5.310.0300.07720.41
5.5.300.0100.07718.08
5.5.290.0100.07718.08
5.5.280.0070.03720.97
5.5.270.0070.05020.68
5.5.260.0030.09720.80
5.5.250.0200.03320.80
5.5.240.0070.07320.37
5.4.450.0200.07719.48
5.4.440.0300.04719.60
5.4.430.0200.06019.59
5.4.420.0130.05319.59
5.4.410.0100.06019.18
5.4.400.0130.05319.01
5.4.390.0070.06719.24
5.4.380.0170.05719.25
5.4.370.0200.05719.14
5.4.360.0170.05719.22
5.4.350.0270.05319.27
5.4.340.0230.05318.98
5.4.320.0170.05719.11
5.4.310.0330.04019.29
5.4.300.0230.05719.29
5.4.290.0200.05319.25
5.4.280.0200.07018.83
5.4.270.0230.07318.98
5.4.260.0170.05719.24
5.4.250.0100.06019.28
5.4.240.0230.05719.28
5.4.230.0100.08018.83
5.4.220.0130.05719.10
5.4.210.0100.07019.23
5.4.200.0330.05019.24
5.4.190.0170.05019.23
5.4.180.0130.05319.24
5.4.170.0230.05719.08
5.4.160.0200.06719.11
5.4.150.0100.06019.34
5.4.140.0100.06016.50
5.4.130.0130.05016.59
5.4.120.0130.07016.36
5.4.110.0200.06016.35
5.4.100.0230.04316.46
5.4.90.0130.05316.48
5.4.80.0130.05716.55
5.4.70.0270.07316.61
5.4.60.0270.07316.23
5.4.50.0000.05716.43
5.4.40.0030.06716.53
5.4.30.0000.07316.43
5.4.20.0330.06316.55

preferences:
44.2 ms | 400 KiB | 5 Q