3v4l.org

run code in 300+ PHP versions simultaneously
<?php //function test3(){ // echo "Global test1"; //} 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->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.0040.01118.63
8.3.30.0110.00418.79
8.3.20.0000.00820.29
8.3.10.0050.00323.64
8.3.00.0080.00019.69
8.2.170.0070.01122.96
8.2.160.0100.00320.53
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00617.50
8.2.110.0060.00321.00
8.2.100.0000.01117.97
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0030.00617.92
8.2.50.0040.00418.10
8.2.40.0070.00019.34
8.2.30.0050.00219.35
8.2.20.0070.00017.61
8.2.10.0040.00417.88
8.2.00.0000.00718.04
8.1.270.0140.00722.04
8.1.260.0050.00326.35
8.1.250.0020.00528.09
8.1.240.0060.00323.96
8.1.230.0120.00019.48
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.00917.22
8.1.190.0060.00317.25
8.1.180.0060.00318.10
8.1.170.0060.00318.53
8.1.160.0000.00721.86
8.1.150.0040.00418.74
8.1.140.0060.00317.45
8.1.130.0030.00317.63
8.1.120.0050.00317.45
8.1.110.0000.00817.38
8.1.100.0000.00817.35
8.1.90.0050.00317.40
8.1.80.0050.00217.39
8.1.70.0040.00417.33
8.1.60.0080.00017.46
8.1.50.0090.00017.57
8.1.40.0070.00417.53
8.1.30.0080.00017.62
8.1.20.0000.00717.49
8.1.10.0000.00817.47
8.1.00.0030.00617.46
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.25
8.0.270.0030.00517.20
8.0.260.0060.00017.23
8.0.250.0000.00716.81
8.0.240.0050.00516.98
8.0.230.0000.00816.90
8.0.220.0000.00716.89
8.0.210.0000.00716.78
8.0.200.0000.00616.84
8.0.190.0070.00316.86
8.0.180.0000.00816.81
8.0.170.0000.00816.90
8.0.160.0000.00716.91
8.0.150.0040.00416.85
8.0.140.0000.00716.76
8.0.130.0050.00013.27
8.0.120.0050.00316.88
8.0.110.0040.00416.77
8.0.100.0040.00417.01
8.0.90.0030.00316.75
8.0.80.0060.00916.77
8.0.70.0050.00216.84
8.0.60.0040.00416.73
8.0.50.0070.00016.73
8.0.30.0090.01217.09
8.0.20.0120.00817.40
8.0.10.0040.00417.13
8.0.00.0080.01116.83
7.4.330.0020.00215.08
7.4.320.0020.00516.43
7.4.300.0030.00316.61
7.4.290.0030.00316.51
7.4.280.0070.00016.52
7.4.270.0060.00316.48
7.4.260.0000.00816.48
7.4.250.0070.00016.45
7.4.240.0030.00316.54
7.4.230.0000.00716.64
7.4.220.0000.01716.52
7.4.210.0090.00916.52
7.4.200.0070.00016.68
7.4.160.0140.00316.63
7.4.150.0120.01217.40
7.4.140.0080.01017.86
7.4.130.0150.00316.52
7.4.120.0130.00716.65
7.4.110.0130.00616.57
7.4.100.0110.00716.52
7.4.90.0140.00316.56
7.4.80.0150.00419.39
7.4.70.0090.00616.67
7.4.60.0160.00016.51
7.4.50.0040.00416.43
7.4.40.0120.00416.55
7.4.30.0040.01616.51
7.4.10.0110.00714.79
7.4.00.0070.01015.04
7.3.330.0000.00613.36
7.3.320.0060.00013.35
7.3.310.0070.00016.41
7.3.300.0030.00316.36
7.3.290.0070.00016.31
7.3.280.0100.00816.39
7.3.270.0090.00917.40
7.3.260.0120.00616.57
7.3.250.0100.01016.40
7.3.240.0140.00816.25
7.3.230.0060.01316.48
7.3.210.0080.00816.44
7.3.200.0070.01016.63
7.3.190.0100.00716.41
7.3.180.0120.00616.48
7.3.170.0090.01316.41
7.3.160.0090.01216.32
7.3.130.0060.01014.84
7.3.120.0100.00714.86
7.3.110.0050.01214.72
7.3.100.0050.01014.88
7.3.90.0030.00614.84
7.3.80.0070.00714.80
7.3.70.0050.00714.66
7.3.60.0080.00814.90
7.3.50.0030.00814.71
7.3.40.0050.01214.84
7.3.30.0070.01014.79
7.3.20.0080.00516.75
7.3.10.0060.00716.41
7.3.00.0040.00916.57
7.2.330.0140.00316.55
7.2.320.0130.01016.73
7.2.310.0080.00816.37
7.2.300.0110.00516.64
7.2.290.0140.00316.60
7.2.260.0060.01215.05
7.2.250.0070.00814.82
7.2.240.0040.01214.77
7.2.230.0050.01114.89
7.2.220.0050.00815.15
7.2.210.0040.00814.87
7.2.200.0090.00714.86
7.2.190.0090.00514.95
7.2.180.0050.01014.84
7.2.170.0090.00814.85
7.2.160.0040.00814.83
7.2.150.0070.00716.57
7.2.140.0050.00516.63
7.2.130.0020.01016.62
7.2.120.0000.01016.86
7.2.110.0030.00716.61
7.2.100.0050.00916.97
7.2.90.0040.00916.85
7.2.80.0060.00816.83
7.2.70.0070.00616.78
7.2.60.0030.01016.86
7.2.50.0080.00616.73
7.2.40.0010.01216.89
7.2.30.0050.00716.88
7.2.20.0030.01216.94
7.2.10.0060.00616.90
7.2.00.0020.01017.58
7.1.330.0070.00815.47
7.1.320.0060.00515.60
7.1.310.0060.00815.63
7.1.300.0060.00815.55
7.1.290.0070.00815.66
7.1.280.0100.00515.54
7.1.270.0050.00615.52
7.1.260.0060.00815.50
7.1.250.0060.00615.67
7.1.240.0000.00915.61
7.1.230.0110.00315.67
7.1.220.0140.00015.63
7.1.210.0040.01115.71
7.1.200.0020.01015.58
7.1.190.0030.00715.52
7.1.180.0000.00815.57
7.1.170.0070.00715.71
7.1.160.0050.00315.71
7.1.150.0030.01015.68
7.1.140.0030.01315.35
7.1.130.0030.01015.64
7.1.120.0000.01115.67
7.1.110.0060.00615.75
7.1.100.0050.01116.68
7.1.90.0110.00415.63
7.1.80.0060.00915.75
7.1.70.0040.00616.10
7.1.60.0080.00817.46
7.1.50.0100.00616.09
7.1.40.0120.00315.63
7.1.30.0030.00515.39
7.1.20.0030.00615.67
7.1.10.0070.01015.35
7.1.00.0070.03819.05
7.0.330.0060.01015.46
7.0.320.0000.01015.27
7.0.310.0030.01115.26
7.0.300.0060.00315.34
7.0.290.0040.00815.25
7.0.280.0100.00315.36
7.0.270.0030.00915.43
7.0.260.0000.01215.36
7.0.250.0030.00515.53
7.0.240.0030.00615.17
7.0.230.0120.00015.00
7.0.220.0000.01015.11
7.0.210.0080.00315.22
7.0.200.0070.00515.95
7.0.190.0070.00715.28
7.0.180.0000.01515.38
7.0.170.0000.01015.31
7.0.160.0060.00615.46
7.0.150.0080.00815.27
7.0.140.0100.00315.54
7.0.130.0100.00315.43
7.0.120.0030.01015.51
7.0.110.0070.00715.45
7.0.100.0100.00315.24
7.0.90.0060.00315.08
7.0.80.0030.01015.27
7.0.70.0030.01015.25
7.0.60.0130.03517.63
7.0.50.0030.02816.52
7.0.40.0060.04216.82
7.0.30.0120.02516.76
7.0.20.0130.04116.84
7.0.10.0070.02316.66
7.0.00.0070.04016.77
5.6.400.0060.00614.46
5.6.390.0030.00714.17
5.6.380.0030.00714.55
5.6.370.0030.00914.51
5.6.360.0100.00714.70
5.6.350.0000.00814.59
5.6.340.0030.01314.61
5.6.330.0030.01314.27
5.6.320.0040.00714.54
5.6.310.0070.00414.11
5.6.300.0040.01114.03
5.6.290.0060.00614.36
5.6.280.0040.04117.69
5.6.270.0000.01414.27
5.6.260.0130.00014.27
5.6.250.0040.00814.73
5.6.240.0040.00814.41
5.6.230.0080.00413.98
5.6.220.0090.00613.90
5.6.210.0060.04317.61
5.6.200.0110.04016.21
5.6.190.0050.03717.46
5.6.180.1950.03017.26
5.6.170.0130.02417.52
5.6.160.0030.02817.42
5.6.150.0110.04016.20
5.6.140.0080.04316.20
5.6.130.0080.04316.19
5.6.120.0090.04217.74
5.6.110.0100.03917.63
5.6.100.0030.04617.79
5.6.90.0100.04317.55
5.6.80.0100.03717.29
5.6.70.0220.03817.44
5.6.60.0040.00414.39
5.6.50.0030.00914.22
5.6.40.0050.00514.21
5.6.30.0070.00414.15
5.6.20.0090.00614.11
5.6.10.0040.00814.46
5.6.00.0040.01114.21
5.5.380.0050.00314.43
5.5.370.0040.01114.22
5.5.360.0120.00614.09
5.5.350.0000.04617.34
5.5.340.0100.03215.96
5.5.330.0110.04017.36
5.5.320.0200.04117.27
5.5.310.0210.02317.27
5.5.300.0070.02516.19
5.5.290.0070.03716.10
5.5.280.0050.02517.45
5.5.270.0100.04417.46
5.5.260.0060.04717.74
5.5.250.0030.05017.50
5.5.240.0040.04517.01
5.5.230.0030.01014.18
5.5.220.0080.00313.73
5.5.210.0090.00614.17
5.5.200.0030.00614.33
5.5.190.0040.00714.16
5.5.180.0040.01414.34
5.5.170.0120.00613.96
5.5.160.0070.00714.16
5.5.150.0160.00014.25
5.5.140.0100.00714.20
5.5.130.0080.00814.26
5.5.120.0100.00014.24
5.5.110.0060.00314.07
5.5.100.0030.01013.98
5.5.90.0030.01014.05
5.5.80.0040.00814.05
5.5.70.0000.01013.73
5.5.60.0030.00713.89
5.5.50.0100.00314.13
5.5.40.0000.01314.16
5.5.30.0060.00914.18
5.5.20.0030.01013.98
5.5.10.0040.00414.10
5.5.00.0070.00714.26
5.4.450.0150.02816.31
5.4.440.0110.03316.39
5.4.430.0030.04216.20
5.4.420.0100.03016.39
5.4.410.0080.03516.35
5.4.400.0100.03016.11
5.4.390.0050.03516.20
5.4.380.0160.02616.30
5.4.370.0150.02516.05
5.4.360.0150.02716.05
5.4.350.0100.02916.22
5.4.340.0160.03016.30
5.4.330.0090.00913.23
5.4.320.0130.03016.29
5.4.310.0110.02916.26
5.4.300.0080.03316.12
5.4.290.0080.03016.14
5.4.280.0140.03016.13
5.4.270.0050.03316.18
5.4.260.0060.03316.30
5.4.250.0120.02716.26
5.4.240.0130.02716.26
5.4.230.0100.02916.10
5.4.220.0160.02516.26
5.4.210.0110.02816.24
5.4.200.0100.03116.29
5.4.190.0100.03016.10
5.4.180.0130.02516.19
5.4.170.0100.03016.25
5.4.160.0080.02916.04
5.4.150.0150.02716.23
5.4.140.0130.02914.81
5.4.130.0130.02814.91
5.4.120.0120.03014.85
5.4.110.0120.04214.89
5.4.100.0130.02814.90
5.4.90.0120.02814.86
5.4.80.0160.02614.73
5.4.70.0100.03914.87
5.4.60.0180.02314.79
5.4.50.0020.03514.70
5.4.40.0050.02814.73
5.4.30.0030.03414.74
5.4.20.0180.02114.88
5.4.10.0030.01013.23
5.4.00.0100.00313.23

preferences:
51.29 ms | 400 KiB | 5 Q