3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public static function test() { static::foo(); static::bar(); } public static function foo() { echo __METHOD__ . " called\n"; } private static function bar() { echo __METHOD__ . " called\n"; } } class b extends a { } class c extends a { public static function foo() { echo __METHOD__ . " called\n"; } private static function bar() { echo __METHOD__ . " called\n"; } } a::test(); b::test(); c::test();

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.0070.00716.48
8.3.50.0080.00821.08
8.3.40.0040.01118.68
8.3.30.0070.00718.63
8.3.20.0000.00720.07
8.3.10.0040.00423.48
8.3.00.0040.00722.31
8.2.180.0090.00616.60
8.2.170.0040.01122.96
8.2.160.0150.00420.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00417.63
8.2.110.0070.00322.19
8.2.100.0090.00317.72
8.2.90.0080.00019.26
8.2.80.0080.00017.97
8.2.70.0030.00517.75
8.2.60.0040.00418.05
8.2.50.0060.00318.07
8.2.40.0040.00421.11
8.2.30.0040.00419.81
8.2.20.0040.00417.74
8.2.10.0030.00517.92
8.2.00.0040.00418.04
8.1.280.0110.00425.92
8.1.270.0080.00020.33
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00323.82
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00818.52
8.1.160.0040.00421.87
8.1.150.0000.00718.63
8.1.140.0040.00417.32
8.1.130.0040.00417.45
8.1.120.0040.00317.34
8.1.110.0050.00217.37
8.1.100.0040.00417.32
8.1.90.0050.00217.24
8.1.80.0050.00517.32
8.1.70.0040.00417.32
8.1.60.0030.00517.36
8.1.50.0080.00017.46
8.1.40.0000.00717.41
8.1.30.0000.00817.57
8.1.20.0000.00817.46
8.1.10.0080.00017.54
8.1.00.0000.00717.48
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.49
8.0.270.0030.00317.27
8.0.260.0000.00717.29
8.0.250.0000.00717.00
8.0.240.0040.00416.85
8.0.230.0060.00316.89
8.0.220.0080.00016.86
8.0.210.0030.00516.85
8.0.200.0030.00316.94
8.0.190.0070.00416.92
8.0.180.0000.00716.97
8.0.170.0080.00016.84
8.0.160.0040.00416.89
8.0.150.0040.00316.90
8.0.140.0040.00416.68
8.0.130.0000.00613.27
8.0.120.0030.00516.88
8.0.110.0070.00016.92
8.0.100.0040.00416.89
8.0.90.0070.00016.90
8.0.80.0000.01516.83
8.0.70.0040.00416.71
8.0.60.0030.00516.82
8.0.50.0050.00316.76
8.0.30.0080.01117.14
8.0.20.0100.00917.40
8.0.10.0040.00416.95
8.0.00.0110.01016.79
7.4.330.0020.00215.08
7.4.320.0000.00716.39
7.4.300.0000.00716.41
7.4.290.0000.00616.59
7.4.280.0040.00416.62
7.4.270.0030.00316.43
7.4.260.0070.00016.45
7.4.250.0030.00516.57
7.4.240.0040.00416.46
7.4.230.0030.00316.64
7.4.220.0070.01816.43
7.4.210.0070.01316.50
7.4.200.0000.00816.45
7.4.160.0090.00616.50
7.4.150.0060.01317.40
7.4.140.0160.00717.86
7.4.130.0100.00916.42
7.4.120.0110.00616.47
7.4.110.0120.00616.53
7.4.100.0160.00716.61
7.4.90.0000.01516.56
7.4.80.0080.01119.39
7.4.70.0130.00316.57
7.4.60.0120.00316.46
7.4.50.0000.00816.56
7.4.40.0050.01116.36
7.4.30.0040.01216.41
7.4.10.0140.00314.64
7.4.00.0050.01014.72
7.3.330.0000.00613.16
7.3.320.0030.00313.14
7.3.310.0000.00716.19
7.3.300.0000.00716.36
7.3.290.0070.00816.31
7.3.280.0070.00816.35
7.3.270.0110.00517.40
7.3.260.0070.01016.42
7.3.250.0110.00816.35
7.3.240.0060.01516.55
7.3.230.0060.01616.52
7.3.210.0060.00916.28
7.3.200.0060.01619.39
7.3.190.0060.00916.54
7.3.180.0030.01316.41
7.3.170.0000.01716.41
7.3.160.0100.01016.52
7.3.130.0060.01215.09
7.3.120.0080.00914.66
7.3.110.0070.01314.77
7.3.100.0080.00714.58
7.3.90.0110.00614.82
7.3.80.0040.01014.80
7.3.70.0070.00414.86
7.3.60.0020.00914.73
7.3.50.0060.00414.72
7.3.40.0070.00514.81
7.3.30.0080.00514.77
7.3.20.0040.00916.57
7.3.10.0050.01016.65
7.3.00.0030.00916.75
7.2.330.0090.00916.66
7.2.320.0060.01216.53
7.2.310.0130.00316.76
7.2.300.0090.00916.54
7.2.290.0130.00416.60
7.2.260.0060.00914.63
7.2.250.0100.00814.91
7.2.240.0080.00915.13
7.2.230.0060.01014.77
7.2.220.0070.00415.09
7.2.210.0020.01315.07
7.2.200.0050.01114.78
7.2.190.0050.00914.85
7.2.180.0020.01015.00
7.2.170.0050.01014.84
7.2.160.0060.00614.83
7.2.150.0030.01416.59
7.2.140.0100.00716.95
7.2.130.0100.00616.67
7.2.120.0030.01416.79
7.2.110.0030.01416.78
7.2.100.0060.01216.49
7.2.90.0040.00816.97
7.2.80.0120.00316.89
7.2.70.0070.00316.58
7.2.60.0050.01116.77
7.2.50.0030.01316.95
7.2.40.0070.00416.98
7.2.30.0070.01016.77
7.2.20.0110.00416.87
7.2.10.0040.01116.88
7.2.00.0070.00918.13
7.1.330.0100.00615.48
7.1.320.0070.00815.76
7.1.310.0070.01015.81
7.1.300.0030.01015.54
7.1.290.0040.01015.51
7.1.280.0040.00715.51
7.1.270.0060.00715.52
7.1.260.0020.01015.56
7.1.250.0060.00315.79
7.1.240.0070.00715.34
7.1.230.0110.00715.35
7.1.220.0030.00815.61
7.1.210.0030.01015.69
7.1.200.0060.00815.59
7.1.190.0000.01515.66
7.1.180.0040.00415.69
7.1.170.0080.00515.52
7.1.160.0000.01315.44
7.1.150.0040.01215.54
7.1.140.0060.00915.52
7.1.130.0080.00015.80
7.1.120.0070.01015.52
7.1.110.0070.00715.69
7.1.100.0060.00816.67
7.1.90.0030.01015.68
7.1.80.0040.00715.63
7.1.70.0040.00916.10
7.1.60.0070.00717.88
7.1.50.0070.00916.29
7.1.40.0060.00615.75
7.1.30.0040.00815.38
7.1.20.0030.01015.57
7.1.10.0070.00715.44
7.1.00.0060.04119.10
7.0.330.0110.00415.36
7.0.320.0130.00015.30
7.0.310.0030.01015.06
7.0.300.0120.00415.16
7.0.290.0000.01715.41
7.0.280.0060.00915.13
7.0.270.0050.00515.39
7.0.260.0070.01015.45
7.0.250.0060.00615.02
7.0.240.0040.00415.37
7.0.230.0070.00715.54
7.0.220.0040.01215.15
7.0.210.0070.00715.48
7.0.200.0140.00715.06
7.0.190.0030.00915.45
7.0.180.0040.01115.41
7.0.170.0000.01315.48
7.0.160.0100.00015.14
7.0.150.0030.01015.38
7.0.140.0040.00915.22
7.0.130.0110.00315.05
7.0.120.0040.00415.38
7.0.110.0030.01015.27
7.0.100.0040.00715.09
7.0.90.0110.00415.48
7.0.80.0060.00315.56
7.0.70.0070.00415.37
7.0.60.0110.03217.56
7.0.50.0030.02716.67
7.0.40.0050.05016.81
7.0.30.0300.03316.71
7.0.20.0160.04116.82
7.0.10.0020.04816.85
7.0.00.0100.03016.80
5.6.400.0060.00314.41
5.6.390.0090.00314.42
5.6.380.0070.00714.21
5.6.370.0000.01114.54
5.6.360.0040.01414.09
5.6.350.0030.01214.55
5.6.340.0040.00814.01
5.6.330.0000.01514.13
5.6.320.0000.01213.92
5.6.310.0040.01114.20
5.6.300.0000.01314.36
5.6.290.0070.00714.35
5.6.280.0060.02517.88
5.6.270.0090.00014.38
5.6.260.0030.01414.40
5.6.250.0030.01214.07
5.6.240.0030.01014.16
5.6.230.0090.00614.09
5.6.220.0080.00414.32
5.6.210.0100.03817.52
5.6.200.0100.03216.12
5.6.190.0080.04317.40
5.6.180.0130.04517.55
5.6.170.0220.03517.42
5.6.160.0070.02817.50
5.6.150.0050.04616.30
5.6.140.0120.03716.38
5.6.130.0050.03916.29
5.6.120.0080.03617.76
5.6.110.0050.02517.80
5.6.100.0050.03717.62
5.6.90.0080.02317.57
5.6.80.0030.03917.39
5.6.70.2000.02517.27
5.6.60.0030.00914.34
5.6.50.0000.01113.96
5.6.40.0070.01014.19
5.6.30.0000.01214.10
5.6.20.0060.00614.41
5.6.10.0060.00614.36
5.6.00.0030.01014.22
5.5.380.0060.00814.14
5.5.370.0100.00714.39
5.5.360.0070.00714.38
5.5.350.0140.02717.19
5.5.340.0050.02916.05
5.5.330.0110.04017.38
5.5.320.0170.04217.23
5.5.310.0150.02217.22
5.5.300.0040.04016.06
5.5.290.0080.04516.23
5.5.280.0040.04917.36
5.5.270.0050.03417.48
5.5.260.0050.04717.57
5.5.250.0130.03817.46
5.5.240.2000.02817.20
5.5.230.0150.00014.20
5.5.220.0040.00814.22
5.5.210.0090.00013.92
5.5.200.0070.00414.14
5.5.190.0070.00714.01
5.5.180.0060.00614.32
5.5.170.0000.01014.16
5.5.160.0060.00314.26
5.5.150.0040.00814.29
5.5.140.0120.00014.06
5.5.130.0030.00714.32
5.5.120.0050.00814.15
5.5.110.0040.00814.22
5.5.100.0030.00714.06
5.5.90.0090.00314.30
5.5.80.0110.00414.01
5.5.70.0070.00714.13
5.5.60.0000.01314.00
5.5.50.0060.00614.13
5.5.40.0070.00714.23
5.5.30.0060.00914.30
5.5.20.0000.01414.21
5.5.10.0030.00914.09
5.5.00.0080.00314.08
5.4.450.0380.03415.13
5.4.440.0450.03115.18
5.4.430.0400.03015.18
5.4.420.0420.02714.99
5.4.410.0470.02515.10
5.4.400.0400.02714.98
5.4.390.0400.03115.14
5.4.380.0280.03115.10
5.4.370.0400.02515.09
5.4.360.0330.03015.03
5.4.350.0400.03415.15
5.4.340.0420.02815.08
5.4.330.0000.01110.84
5.4.320.0360.03214.95
5.4.310.0420.03815.15
5.4.300.0450.02315.13
5.4.290.0320.03015.16
5.4.280.0430.02814.98
5.4.270.0360.03315.18
5.4.260.0350.02714.90
5.4.250.0350.02715.21
5.4.240.0320.03214.70
5.4.230.0380.02815.12
5.4.220.0380.03314.94
5.4.210.0040.03215.01
5.4.200.0100.02713.89
5.4.190.0340.03014.78
5.4.180.0330.03215.07
5.4.170.0450.03315.10
5.4.160.0380.03014.90
5.4.150.0040.03014.88
5.4.140.0050.03013.65
5.4.130.0200.02913.65
5.4.120.0280.02513.67
5.4.110.0330.02813.70
5.4.100.0160.02313.79
5.4.90.0160.02913.68
5.4.80.0200.03513.73
5.4.70.0330.03013.49
5.4.60.0060.03613.71
5.4.50.0030.01813.79
5.4.40.0080.02713.43
5.4.30.0180.02313.78
5.4.20.0220.02913.75
5.4.10.0030.00611.00
5.4.00.0030.00511.07

preferences:
55.61 ms | 401 KiB | 5 Q