3v4l.org

run code in 300+ PHP versions simultaneously
<?php //function test3(){ // echo "Global test1"; //} 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.40.0110.00418.77
8.3.30.0100.00318.70
8.3.20.0030.00620.02
8.3.10.0000.00823.71
8.3.00.0000.00819.65
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.50
8.2.110.0100.00021.12
8.2.100.0090.00417.91
8.2.90.0030.00518.03
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00419.30
8.2.30.0000.00719.32
8.2.20.0040.00417.72
8.2.10.0040.00417.91
8.2.00.0000.00718.00
8.1.270.0130.00722.11
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.10
8.1.230.0000.01120.96
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0000.00718.10
8.1.170.0000.00918.60
8.1.160.0020.00521.88
8.1.150.0040.00418.79
8.1.140.0050.00317.33
8.1.130.0040.00417.75
8.1.120.0070.00017.29
8.1.110.0040.00417.39
8.1.100.0030.00517.36
8.1.90.0030.00517.45
8.1.80.0070.00017.38
8.1.70.0070.00017.31
8.1.60.0090.00017.49
8.1.50.0000.00817.53
8.1.40.0030.00717.52
8.1.30.0050.00317.57
8.1.20.0000.00817.55
8.1.10.0080.00017.47
8.1.00.0050.00217.46
8.0.300.0060.00320.19
8.0.290.0050.00316.62
8.0.280.0030.00318.41
8.0.270.0030.00317.26
8.0.260.0030.00317.21
8.0.250.0070.00016.96
8.0.240.0080.00016.96
8.0.230.0040.00417.00
8.0.220.0050.00316.81
8.0.210.0030.00316.89
8.0.200.0060.00016.96
8.0.190.0060.00616.93
8.0.180.0000.00816.91
8.0.170.0000.00816.80
8.0.160.0000.00716.81
8.0.150.0070.00016.89
8.0.140.0000.00716.83
8.0.130.0000.00613.35
8.0.120.0000.00816.77
8.0.110.0000.00916.94
8.0.100.0020.00516.85
8.0.90.0000.00716.89
8.0.80.0030.01016.86
8.0.70.0030.00316.83
8.0.60.0060.00316.77
8.0.50.0040.00416.68
8.0.30.0090.01017.24
8.0.20.0140.00517.40
8.0.10.0000.00816.86
8.0.00.0070.01116.67
7.4.330.0000.00515.09
7.4.320.0040.00416.44
7.4.300.0030.00316.59
7.4.290.0030.00316.52
7.4.280.0090.00016.50
7.4.270.0050.00516.55
7.4.260.0030.00316.52
7.4.250.0040.00416.57
7.4.240.0020.00516.59
7.4.230.0070.00016.39
7.4.220.0090.01316.71
7.4.210.0150.00316.52
7.4.200.0000.00716.68
7.4.160.0090.00616.65
7.4.150.0110.00817.40
7.4.140.0080.01017.86
7.4.130.0110.00716.55
7.4.120.0140.00816.54
7.4.110.0140.00616.50
7.4.100.0110.00716.45
7.4.90.0070.01016.48
7.4.80.0090.00619.39
7.4.70.0070.01116.45
7.4.60.0100.00716.63
7.4.50.0040.00416.61
7.4.40.0030.01316.64
7.4.30.0040.01416.60
7.4.00.0120.00315.16
7.3.330.0030.00313.36
7.3.320.0000.00513.22
7.3.310.0000.00716.38
7.3.300.0050.00316.31
7.3.290.0050.00216.22
7.3.280.0100.01016.33
7.3.270.0110.00617.40
7.3.260.0030.01716.26
7.3.250.0140.00616.33
7.3.240.0080.01416.30
7.3.230.0070.01016.55
7.3.210.0130.00316.35
7.3.200.0150.00616.45
7.3.190.0080.00916.30
7.3.180.0150.00016.58
7.3.170.0150.00016.31
7.3.160.0120.00916.32
7.2.330.0090.00916.72
7.2.320.0110.01116.72
7.2.310.0150.00216.55
7.2.300.0070.01016.56
7.2.290.0080.00816.73
7.2.60.0040.01116.83
7.2.00.0040.01119.23
7.1.200.0030.00915.43
7.1.100.0000.01118.18
7.1.70.0060.00316.91
7.1.60.0160.00619.27
7.1.50.0140.01016.74
7.1.00.0030.07722.40
7.0.200.0050.00316.49
7.0.60.0170.07719.97
7.0.50.0070.07317.86
7.0.40.0100.06320.11
7.0.30.0230.07320.25
7.0.20.0370.07320.12
7.0.10.0030.04320.23
7.0.00.0070.08720.24
5.6.280.0130.05321.04
5.6.210.0170.07320.77
5.6.200.0070.03718.20
5.6.190.0100.08720.47
5.6.180.3530.04320.61
5.6.170.0200.04720.44
5.6.160.0170.07320.39
5.6.150.0170.07318.18
5.6.140.0170.03018.28
5.6.130.0030.05318.21
5.6.120.0070.05720.97
5.6.110.0030.08721.02
5.6.100.0130.07720.94
5.6.90.0070.08721.13
5.6.80.0200.06720.40
5.6.70.0200.04020.51
5.5.350.0000.08320.34
5.5.340.0000.08317.96
5.5.330.0070.05720.37
5.5.320.0370.05020.30
5.5.310.0200.05320.51
5.5.300.0000.08317.95
5.5.290.0030.05318.05
5.5.280.0070.04020.79
5.5.270.0100.08020.87
5.5.260.0030.09720.77
5.5.250.0170.07320.70
5.5.240.0030.08020.27
5.4.450.0100.06719.52
5.4.440.0230.05319.31
5.4.430.0200.05319.54
5.4.420.0370.04719.55
5.4.410.0270.05319.04
5.4.400.0200.05319.14
5.4.390.0270.06019.25
5.4.380.0100.06318.84
5.4.370.0230.05319.03
5.4.360.0130.06319.06
5.4.350.0230.05318.87
5.4.340.0170.08319.01
5.4.320.0330.06718.98
5.4.310.0200.07319.25
5.4.300.0300.04319.14
5.4.290.0200.05319.14
5.4.280.0200.06019.14
5.4.270.0270.05719.24
5.4.260.0370.04719.11
5.4.250.0330.06718.83
5.4.240.0430.06019.24
5.4.230.0270.05319.11
5.4.220.0430.05719.05
5.4.210.0230.05719.02
5.4.200.0230.05318.86
5.4.190.0300.05019.05
5.4.180.0100.07319.14
5.4.170.0270.05718.97
5.4.160.0330.06319.23
5.4.150.0300.05318.85
5.4.140.0230.05716.46
5.4.130.0130.06016.50
5.4.120.0230.06016.55
5.4.110.0430.05316.64
5.4.100.0230.06016.63
5.4.90.0100.06716.35
5.4.80.0200.05716.46
5.4.70.0200.06316.28
5.4.60.0270.06016.56
5.4.50.0000.06316.34
5.4.40.0000.05716.34
5.4.30.0000.04316.25
5.4.20.0330.07016.43

preferences:
41 ms | 400 KiB | 5 Q