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.60.0060.01616.73
8.3.50.0100.01021.21
8.3.40.0100.01018.73
8.3.30.0000.01418.59
8.3.20.0040.00420.22
8.3.10.0030.00623.64
8.3.00.0090.00019.53
8.2.180.0100.01016.75
8.2.170.0060.00922.96
8.2.160.0120.00920.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.01017.63
8.2.110.0070.00421.03
8.2.100.0030.00917.79
8.2.90.0080.00018.34
8.2.80.0040.00417.97
8.2.70.0030.00617.13
8.2.60.0030.00517.93
8.2.50.0110.00018.07
8.2.40.0040.00419.27
8.2.30.0000.00719.42
8.2.20.0050.00317.67
8.2.10.0000.00718.14
8.2.00.0030.00317.92
8.1.280.0030.01425.92
8.1.270.0140.00722.05
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.20
8.1.230.0040.00720.91
8.1.220.0080.00017.76
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0040.00418.70
8.1.160.0070.00022.00
8.1.150.0000.00718.89
8.1.140.0000.00817.45
8.1.130.0000.00717.59
8.1.120.0040.00417.39
8.1.110.0040.00417.46
8.1.100.0050.00317.35
8.1.90.0000.00717.36
8.1.80.0040.00417.43
8.1.70.0080.00017.39
8.1.60.0030.00617.58
8.1.50.0050.00317.40
8.1.40.0000.01217.49
8.1.30.0060.00317.65
8.1.20.0040.00417.63
8.1.10.0000.00817.44
8.1.00.0040.00417.48
8.0.300.0070.00020.02
8.0.290.0100.00016.75
8.0.280.0070.00018.52
8.0.270.0000.00717.13
8.0.260.0030.00317.27
8.0.250.0070.00016.97
8.0.240.0060.00316.97
8.0.230.0060.00316.82
8.0.220.0030.00316.91
8.0.210.0000.00716.91
8.0.200.0030.00316.84
8.0.190.0070.00416.95
8.0.180.0000.00816.87
8.0.170.0070.00016.88
8.0.160.0040.00416.77
8.0.150.0000.00816.83
8.0.140.0040.00416.83
8.0.130.0030.00313.33
8.0.120.0030.00616.86
8.0.110.0000.00816.94
8.0.100.0000.00716.94
8.0.90.0000.00716.88
8.0.80.0040.01116.93
8.0.70.0000.00716.69
8.0.60.0000.00716.75
8.0.50.0000.00716.80
8.0.30.0090.00917.03
8.0.20.0110.01117.40
8.0.10.0040.00416.86
8.0.00.0090.00916.72
7.4.330.0020.00215.08
7.4.320.0030.00316.61
7.4.300.0000.00616.50
7.4.290.0000.00816.48
7.4.280.0030.00616.59
7.4.270.0040.00416.50
7.4.260.0040.00416.53
7.4.250.0030.00516.55
7.4.240.0060.00116.50
7.4.230.0070.00016.50
7.4.220.0070.01016.52
7.4.210.0070.00916.54
7.4.200.0000.00716.40
7.4.160.0110.00416.35
7.4.150.0070.01017.40
7.4.140.0170.00817.86
7.4.130.0140.00316.47
7.4.120.0100.00716.51
7.4.110.0060.01216.47
7.4.100.0100.00716.45
7.4.90.0100.00716.34
7.4.80.0080.00819.39
7.4.70.0060.01416.54
7.4.60.0110.00516.55
7.4.50.0040.00416.43
7.4.40.0080.00816.36
7.4.30.0080.01316.40
7.4.00.0050.01314.91
7.3.330.0060.00013.16
7.3.320.0000.00513.22
7.3.310.0000.00716.33
7.3.300.0030.00316.30
7.3.290.0000.00716.30
7.3.280.0100.01116.29
7.3.270.0060.01117.40
7.3.260.0100.01016.52
7.3.250.0080.00916.36
7.3.240.0090.00916.34
7.3.230.0080.00816.39
7.3.210.0060.01316.29
7.3.200.0100.01016.40
7.3.190.0080.01116.34
7.3.180.0100.00716.54
7.3.170.0100.00616.47
7.3.160.0180.00016.50
7.3.120.0070.00715.05
7.3.110.0030.01614.68
7.3.100.0060.00914.45
7.3.90.0070.00714.75
7.3.80.0080.00814.79
7.3.70.0030.01014.60
7.3.60.0070.00414.61
7.3.50.0030.01314.63
7.3.40.0040.01214.80
7.3.30.0040.01114.68
7.3.20.0100.00316.79
7.3.10.0130.00016.46
7.3.00.0000.01216.63
7.2.330.0020.01916.67
7.2.320.0110.01116.31
7.2.310.0100.00616.77
7.2.300.0050.01616.74
7.2.290.0030.01516.39
7.2.250.0090.00915.14
7.2.240.0000.02015.14
7.2.230.0070.00315.22
7.2.220.0110.00714.88
7.2.210.0130.00314.92
7.2.200.0030.00715.20
7.2.190.0000.02015.02
7.2.180.0000.01114.76
7.2.170.0130.00314.93
7.2.00.0000.01419.37
7.1.330.0110.00415.65
7.1.320.0030.00915.49
7.1.310.0000.01615.70
7.1.300.0070.00715.49
7.1.290.0000.01315.51
7.1.280.0040.01115.46
7.1.270.0090.00615.62
7.1.260.0120.00315.89
7.1.100.0100.00318.16
7.1.70.0040.00717.16
7.1.60.0030.01719.27
7.1.50.0230.01034.64
7.1.00.0000.08022.32
7.0.200.0000.00716.59
7.0.60.0030.07720.04
7.0.50.0100.03717.95
7.0.40.0030.04320.05
7.0.30.0300.03720.23
7.0.20.0330.04320.30
7.0.10.0030.04320.37
7.0.00.0030.07320.09
5.6.280.0030.04020.82
5.6.210.0100.06720.72
5.6.200.0030.04018.19
5.6.190.0130.08020.77
5.6.180.3230.04020.61
5.6.170.0230.03720.56
5.6.160.0070.05320.46
5.6.150.0100.06018.18
5.6.140.0030.04318.16
5.6.130.0030.04718.24
5.6.120.0030.05321.10
5.6.110.0030.06721.03
5.6.100.0100.07720.98
5.6.90.0100.08321.11
5.6.80.0030.08320.52
5.6.70.0170.03320.38
5.5.350.0070.07320.44
5.5.340.0130.06717.98
5.5.330.0100.06320.35
5.5.320.0430.06320.36
5.5.310.0370.03720.32
5.5.300.0100.08018.04
5.5.290.0100.03718.09
5.5.280.0100.04020.74
5.5.270.0230.07020.77
5.5.260.0130.08020.88
5.5.250.0100.03720.80
5.5.240.0070.07020.26
5.4.450.0100.05019.42
5.4.440.0100.07719.41
5.4.430.0270.07319.48
5.4.420.0170.05719.64
5.4.410.0270.07319.44
5.4.400.0130.07318.98
5.4.390.0230.06319.31
5.4.380.0130.07719.09
5.4.370.0370.06318.87
5.4.360.0170.04718.89
5.4.350.0300.06318.98
5.4.340.0330.03319.06
5.4.320.0170.03719.09
5.4.310.0170.07719.08
5.4.300.0200.06019.30
5.4.290.0200.06319.24
5.4.280.0200.07318.87
5.4.270.0230.07319.07
5.4.260.0200.04019.05
5.4.250.0230.03018.97
5.4.240.0230.03719.15
5.4.230.0200.07719.30
5.4.220.0200.07019.05
5.4.210.0200.06018.94
5.4.200.0200.07719.31
5.4.190.0100.07319.08
5.4.180.0170.04719.19
5.4.170.0200.07319.07
5.4.160.0200.05319.07
5.4.150.0330.03318.97
5.4.140.0270.04316.43
5.4.130.0170.07316.56
5.4.120.0270.05316.72
5.4.110.0170.07016.50
5.4.100.0230.05716.63
5.4.90.0270.06316.63
5.4.80.0230.04716.49

preferences:
60.02 ms | 401 KiB | 5 Q