3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Red { public static function b_func() { static::a_func(); } public static function a_func() { echo "Colour is ",__CLASS__."\n"; } } class Blue extends Red { public static function run() { Red::b_func(); parent ::b_func(); self::b_func(); } public static function a_func() { echo "Colour is ",__CLASS__."\n"; } } class Green extends Blue { public static function a_func() { echo "Colour is ",__CLASS__."\n"; } } Green::run(); ?>

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.0180.00016.49
8.3.50.0140.00417.82
8.3.40.0110.00318.52
8.3.30.0070.00718.50
8.3.20.0020.00519.20
8.3.10.0070.00023.51
8.3.00.0040.00420.65
8.2.180.0070.00718.16
8.2.170.0150.00322.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00817.91
8.2.120.0000.00726.35
8.2.110.0060.00319.31
8.2.100.0080.00418.09
8.2.90.0030.00717.38
8.2.80.0030.00517.97
8.2.70.0030.00517.93
8.2.60.0060.00318.22
8.2.50.0000.00818.10
8.2.40.0000.00819.25
8.2.30.0040.00419.01
8.2.20.0050.00218.00
8.2.10.0040.00417.88
8.2.00.0040.00417.51
8.1.280.0070.00725.92
8.1.270.0040.00420.70
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0090.00318.77
8.1.220.0080.00017.74
8.1.210.0050.00518.77
8.1.200.0060.00317.23
8.1.190.0000.00916.98
8.1.180.0060.00318.10
8.1.170.0050.00318.67
8.1.160.0070.00018.81
8.1.150.0040.00418.71
8.1.140.0000.00722.08
8.1.130.0000.00720.27
8.1.120.0050.00217.36
8.1.110.0000.00817.32
8.1.100.0040.00417.33
8.1.90.0040.00417.34
8.1.80.0030.00317.23
8.1.70.0000.00817.23
8.1.60.0040.00717.59
8.1.50.0080.00017.42
8.1.40.0030.00517.47
8.1.30.0000.00817.66
8.1.20.0040.00417.63
8.1.10.0000.00717.41
8.1.00.0030.00517.48
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0030.00318.37
8.0.270.0040.00417.15
8.0.260.0000.00818.58
8.0.250.0030.00316.93
8.0.240.0000.00616.92
8.0.230.0000.00716.92
8.0.220.0030.00316.82
8.0.210.0030.00316.79
8.0.200.0000.00716.79
8.0.190.0070.00016.79
8.0.180.0000.00816.79
8.0.170.0090.00016.89
8.0.160.0040.00416.79
8.0.150.0080.00016.76
8.0.140.0000.00716.73
8.0.130.0000.00913.22
8.0.120.0000.00716.68
8.0.110.0020.00516.73
8.0.100.0000.00816.77
8.0.90.0070.00016.64
8.0.80.0040.01116.74
8.0.70.0070.00016.55
8.0.60.0070.00016.72
8.0.50.0030.00516.61
8.0.30.0100.00717.05
8.0.20.0060.01317.40
8.0.10.0040.00416.73
8.0.00.0110.00916.62
7.4.330.0060.00015.55
7.4.320.0040.00416.44
7.4.300.0000.00716.51
7.4.290.0030.00316.42
7.4.280.0070.00316.66
7.4.270.0000.00616.49
7.4.260.0000.00716.41
7.4.250.0030.00516.53
7.4.240.0000.00816.43
7.4.230.0000.00716.58
7.4.220.0000.00716.32
7.4.210.0050.00916.50
7.4.200.0030.00316.51
7.4.160.0080.00816.56
7.4.140.0110.01117.86
7.4.130.0090.01016.43
7.4.120.0080.01016.42
7.4.110.0100.01316.28
7.4.100.0070.01016.47
7.4.90.0090.00916.51
7.4.80.0170.00019.39
7.4.70.0000.01616.50
7.4.60.0040.01216.59
7.4.50.0030.01316.22
7.4.40.0000.01616.32
7.4.10.0130.00314.81
7.4.00.0050.01214.75
7.3.330.0000.00513.23
7.3.320.0060.00013.00
7.3.310.0090.00016.22
7.3.300.0040.00416.29
7.3.290.0030.00316.18
7.3.280.0040.01116.25
7.3.260.0070.01116.37
7.3.240.0100.00916.35
7.3.230.0080.00816.22
7.3.210.0120.00916.26
7.3.200.0110.00416.30
7.3.190.0100.00716.40
7.3.180.0080.00716.44
7.3.170.0090.00916.17
7.3.160.0110.00616.51
7.3.130.0030.01714.57
7.3.120.0070.01314.55
7.3.110.0040.01514.33
7.3.100.0060.00914.40
7.3.90.0090.00614.65
7.3.80.0040.00814.55
7.3.70.0030.00714.45
7.3.60.0040.01214.50
7.3.50.0090.00314.74
7.3.40.0000.01114.48
7.3.30.0100.00014.27
7.3.20.0150.00016.41
7.3.10.0000.00916.37
7.3.00.0000.01216.28
7.2.330.0110.00616.44
7.2.320.0130.01016.47
7.2.310.0080.00816.44
7.2.300.0090.00916.61
7.2.290.0130.00416.66
7.2.260.0070.01014.51
7.2.250.0090.01214.52
7.2.240.0110.00414.66
7.2.230.0090.00914.91
7.2.220.0030.01214.75
7.2.210.0000.01314.89
7.2.200.0070.00714.86
7.2.190.0030.01414.78
7.2.180.0070.00414.53
7.2.170.0100.00014.58
7.2.160.0120.00314.69
7.2.150.0060.01216.63
7.2.140.0070.00316.45
7.2.130.0100.00616.47
7.2.120.0080.00416.81
7.2.110.0050.00916.41
7.2.100.0050.01016.71
7.2.90.0070.00616.45
7.2.80.0070.00716.44
7.2.70.0060.00916.71
7.2.60.0020.01216.66
7.2.50.0110.00516.67
7.2.40.0050.01016.69
7.2.30.0060.00816.68
7.2.20.0070.00816.70
7.2.10.0100.00816.66
7.2.00.0070.00516.69
7.1.330.0100.00315.52
7.1.320.0000.01115.66
7.1.310.0030.00615.38
7.1.300.0100.00715.47
7.1.290.0080.00415.55
7.1.280.0060.00315.43
7.1.270.0030.01015.41
7.1.260.0070.00415.32
7.1.250.0040.01115.68
7.1.240.0030.01415.47
7.1.230.0080.00315.67
7.1.220.0060.00815.53
7.1.210.0070.00815.48
7.1.200.0070.00715.62
7.1.190.0030.00915.57
7.1.180.0070.00415.56
7.1.170.0040.00915.46
7.1.160.0070.00715.26
7.1.150.0050.00915.54
7.1.140.0050.00715.53
7.1.130.0040.00715.43
7.1.120.0040.00915.71
7.1.110.0100.00515.42
7.1.100.0060.00715.64
7.1.90.0070.00615.67
7.1.80.0090.00515.51
7.1.70.0030.01115.52
7.1.60.0190.00524.67
7.1.50.0130.01324.57
7.1.40.0140.00824.58
7.1.30.0200.00824.61
7.1.20.0160.01024.33
7.1.10.0100.00315.50
7.1.00.0060.00715.59
7.0.330.0100.00615.53
7.0.320.0030.01014.97
7.0.310.0040.00815.27
7.0.300.0140.00015.11
7.0.290.0000.01315.30
7.0.280.0000.00815.10
7.0.270.0000.01515.12
7.0.260.0030.00714.85
7.0.250.0100.00315.40
7.0.240.0030.01014.97
7.0.230.0030.00615.16
7.0.220.0030.00715.12
7.0.210.0070.01015.39
7.0.200.0030.01015.22
7.0.190.0040.00414.91
7.0.180.0100.00315.01
7.0.170.0030.00615.38
7.0.160.0100.00615.10
7.0.150.0100.00715.13
7.0.140.0000.01014.92
7.0.130.0030.01015.14
7.0.120.0090.00314.88
7.0.110.0090.00615.03
7.0.100.0080.00415.16
7.0.90.0090.00615.22
7.0.80.0040.00815.36
7.0.70.0060.00614.87
7.0.60.0040.01115.13
7.0.50.0040.00715.25
7.0.40.0000.01413.15
7.0.30.0030.01013.05
7.0.20.0040.00713.21
7.0.10.0080.00413.27
7.0.00.0100.00313.02
5.6.400.0000.01014.20
5.6.390.0060.00913.80
5.6.380.0050.01114.23
5.6.370.0040.01114.20
5.6.360.0050.00513.96
5.6.350.0000.00914.01
5.6.340.0070.00613.97
5.6.330.0060.00614.45
5.6.320.0120.00314.61
5.6.310.0100.00014.36
5.6.300.0070.01014.09
5.6.290.0060.00613.92
5.6.280.0070.00714.05
5.6.270.0070.00314.33
5.6.260.0000.01214.57
5.6.250.0000.01514.06
5.6.240.0030.00914.36
5.6.230.0130.00014.42
5.6.220.0120.00614.10
5.6.210.0040.01213.91
5.6.200.0030.00914.36
5.6.190.0030.00914.14
5.6.180.0040.01113.89
5.6.170.0060.00614.04
5.6.160.0080.00314.18
5.6.150.0110.00313.70
5.6.140.0070.00714.17
5.6.130.0000.01313.80
5.6.120.0030.00613.91
5.6.110.0060.00313.54
5.6.100.0040.00814.25
5.6.90.0000.01313.90
5.6.80.0000.01513.67
5.6.70.0000.01313.75
5.6.60.0090.00613.78
5.6.50.0000.00814.01
5.6.40.0030.00713.97
5.6.30.0040.00813.81
5.6.20.0070.00713.95
5.6.10.0030.01013.64
5.6.00.0040.00413.69

preferences:
54.05 ms | 401 KiB | 5 Q