3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test3(){ echo "Global test"; } class Test{ function test1(){ test3(); } private 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->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.60.0120.00618.43
8.3.50.0090.01021.12
8.3.40.0070.00718.53
8.3.30.0140.00018.36
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0080.00019.67
8.2.180.0140.00716.75
8.2.170.0070.00722.96
8.2.160.0070.01020.47
8.2.150.0080.00024.18
8.2.140.0020.00524.66
8.2.130.0050.00326.16
8.2.120.0000.00917.50
8.2.110.0040.00720.90
8.2.100.0070.00417.72
8.2.90.0000.00919.26
8.2.80.0000.00817.97
8.2.70.0040.00817.50
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0030.00619.25
8.2.30.0040.00419.38
8.2.20.0000.00717.63
8.2.10.0040.00417.88
8.2.00.0000.00717.92
8.1.280.0120.00325.92
8.1.270.0090.00921.89
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0080.00023.83
8.1.230.0030.00817.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00018.46
8.1.160.0040.00421.95
8.1.150.0040.00418.79
8.1.140.0040.00417.32
8.1.130.0040.00417.55
8.1.120.0000.00717.43
8.1.110.0000.00717.39
8.1.100.0030.00317.38
8.1.90.0030.00517.33
8.1.80.0000.00717.44
8.1.70.0070.00017.37
8.1.60.0090.00017.58
8.1.50.0000.00817.52
8.1.40.0030.00717.50
8.1.30.0040.00417.52
8.1.20.0040.00417.66
8.1.10.0000.00817.51
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0020.00518.43
8.0.270.0070.00017.13
8.0.260.0060.00017.13
8.0.250.0070.00016.93
8.0.240.0080.00016.86
8.0.230.0080.00016.80
8.0.220.0000.00816.72
8.0.210.0070.00016.80
8.0.200.0030.00316.82
8.0.190.0030.00716.76
8.0.180.0050.00316.81
8.0.170.0040.00416.71
8.0.160.0040.00416.73
8.0.150.0030.00316.78
8.0.140.0000.00716.74
8.0.130.0030.00313.25
8.0.120.0040.00416.70
8.0.110.0060.00316.77
8.0.100.0050.00316.74
8.0.90.0000.00716.85
8.0.80.0060.00916.79
8.0.70.0070.00016.83
8.0.60.0000.00816.79
8.0.50.0040.00416.68
8.0.30.0080.01317.11
8.0.20.0090.01317.40
8.0.10.0000.00816.78
8.0.00.0080.00916.53
7.4.330.0050.00015.08
7.4.320.0000.00616.57
7.4.300.0000.00716.36
7.4.290.0050.00316.43
7.4.280.0050.00316.55
7.4.270.0040.00416.60
7.4.260.0000.00716.48
7.4.250.0030.00316.46
7.4.240.0050.00216.51
7.4.230.0030.00316.49
7.4.220.0120.01216.51
7.4.210.0060.01216.48
7.4.200.0040.00416.50
7.4.160.0000.01516.34
7.4.150.0060.01617.40
7.4.140.0100.01117.86
7.4.130.0050.01116.58
7.4.120.0090.00816.51
7.4.110.0140.00716.57
7.4.100.0150.00316.39
7.4.90.0120.00616.55
7.4.80.0070.01019.39
7.4.70.0140.00316.45
7.4.60.0070.00816.40
7.4.50.0080.00016.27
7.4.40.0090.00616.48
7.4.30.0170.00716.31
7.4.00.0030.01414.84
7.3.330.0030.00313.03
7.3.320.0000.00513.04
7.3.310.0030.00316.27
7.3.300.0030.00316.40
7.3.290.0030.00316.31
7.3.280.0090.00816.27
7.3.270.0090.00917.40
7.3.260.0200.00316.40
7.3.250.0080.00916.25
7.3.240.0150.00616.35
7.3.230.0150.00716.39
7.3.210.0030.01716.26
7.3.200.0190.00316.57
7.3.190.0100.00616.39
7.3.180.0080.00816.55
7.3.170.0030.01316.38
7.3.160.0030.01516.43
7.2.330.0070.01116.63
7.2.320.0060.01616.66
7.2.310.0040.01416.59
7.2.300.0130.00316.52
7.2.290.0170.00316.45
7.1.100.0070.01017.85
7.1.70.0000.01116.90
7.1.60.0070.01519.27
7.1.50.0280.01434.72
7.1.00.0070.07022.41
7.0.200.0000.01016.60
7.0.60.0070.09019.98
7.0.50.0070.05317.83
7.0.40.0000.04720.15
7.0.30.0270.05320.33
7.0.20.0330.06320.06
7.0.10.0070.05020.24
7.0.00.0030.05320.22
5.6.280.0000.05321.03
5.6.210.0070.03720.48
5.6.200.0030.04018.16
5.6.190.0070.05020.52
5.6.180.3070.04720.50
5.6.170.0200.04020.50
5.6.160.0130.06320.50
5.6.150.0070.05718.18
5.6.140.0030.06718.16
5.6.130.0130.07718.28
5.6.120.0070.08721.00
5.6.110.0130.07721.15
5.6.100.0130.08021.14
5.6.90.0100.06721.11
5.6.80.0170.06720.35
5.6.70.0200.04020.54
5.5.350.0000.07720.54
5.5.340.0070.07717.93
5.5.330.0200.07320.21
5.5.320.0370.04720.29
5.5.310.0300.07320.37
5.5.300.0130.06717.99
5.5.290.0070.07717.95
5.5.280.0130.05020.89
5.5.270.0070.04020.85
5.5.260.0000.05320.88
5.5.250.0130.07320.59
5.5.240.0000.08320.35
5.4.450.0170.03719.18
5.4.440.0200.04319.32
5.4.430.0130.04019.52
5.4.420.0170.04719.38
5.4.410.0270.03719.51
5.4.400.0170.04319.22
5.4.390.0200.07319.18
5.4.380.0170.04019.08
5.4.370.0230.07718.89
5.4.360.0300.06019.20
5.4.350.0270.06019.13
5.4.340.0270.05319.09
5.4.320.0270.07019.22
5.4.310.0300.05019.24
5.4.300.0170.04718.99
5.4.290.0200.04018.98
5.4.280.0300.07318.99
5.4.270.0230.04318.87
5.4.260.0270.07019.22
5.4.250.0230.05319.31
5.4.240.0130.04019.22
5.4.230.0230.07018.99
5.4.220.0230.07318.87
5.4.210.0170.07718.99
5.4.200.0300.07019.19
5.4.190.0230.07018.98
5.4.180.0200.04318.93
5.4.170.0270.07319.05
5.4.160.0230.06718.95
5.4.150.0400.06019.13
5.4.140.0270.06716.44
5.4.130.0200.04316.46
5.4.120.0200.06316.33
5.4.110.0230.05016.61
5.4.100.0130.04316.50
5.4.90.0230.07016.21
5.4.80.0130.05016.57

preferences:
32.89 ms | 401 KiB | 5 Q