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.0100.00718.40
8.3.50.0140.00417.91
8.3.40.0070.00718.92
8.3.30.0070.00718.76
8.3.20.0040.00419.33
8.3.10.0050.00323.65
8.3.00.0020.00520.64
8.2.180.0030.01218.16
8.2.170.0070.00722.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00021.18
8.2.110.0030.00719.21
8.2.100.0060.00617.97
8.2.90.0080.00017.75
8.2.80.0090.00317.97
8.2.70.0000.00817.91
8.2.60.0000.00818.09
8.2.50.0000.00818.10
8.2.40.0040.00419.46
8.2.30.0040.00419.16
8.2.20.0070.00018.04
8.2.10.0050.00318.02
8.2.00.0050.00517.83
8.1.280.0070.00725.92
8.1.270.0090.00020.57
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0030.00622.14
8.1.230.0110.00018.91
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00617.23
8.1.180.0090.00018.10
8.1.170.0000.00918.59
8.1.160.0000.00718.73
8.1.150.0040.00418.77
8.1.140.0000.00722.05
8.1.130.0030.00320.27
8.1.120.0080.00017.30
8.1.110.0040.00417.46
8.1.100.0040.00417.39
8.1.90.0080.00017.29
8.1.80.0040.00417.35
8.1.70.0060.00317.42
8.1.60.0080.00417.55
8.1.50.0000.00817.45
8.1.40.0000.00817.36
8.1.30.0000.00817.58
8.1.20.0040.00417.43
8.1.10.0000.00817.40
8.1.00.0050.00317.46
8.0.300.0060.00318.77
8.0.290.0030.00516.75
8.0.280.0040.00418.37
8.0.270.0070.00017.31
8.0.260.0000.00818.52
8.0.250.0000.00716.99
8.0.240.0000.00716.98
8.0.230.0000.00717.04
8.0.220.0000.00716.84
8.0.210.0000.00616.82
8.0.200.0080.00017.03
8.0.190.0030.00617.01
8.0.180.0040.00416.97
8.0.170.0030.00616.96
8.0.160.0000.00816.92
8.0.150.0030.00716.88
8.0.140.0000.00716.85
8.0.130.0080.00013.34
8.0.120.0080.00016.84
8.0.110.0040.00416.88
8.0.100.0070.00016.87
8.0.90.0040.00416.91
8.0.80.0050.01116.92
8.0.70.0040.00417.02
8.0.60.0070.00016.92
8.0.50.0000.00717.00
8.0.30.0090.00717.25
8.0.20.0090.00917.40
8.0.10.0000.00716.80
8.0.00.0080.01416.80
7.4.330.0030.00315.55
7.4.320.0000.00716.52
7.4.300.0000.00616.49
7.4.290.0000.00716.45
7.4.280.0000.00916.48
7.4.270.0000.00716.51
7.4.260.0030.00316.41
7.4.250.0000.00716.38
7.4.240.0050.00316.44
7.4.230.0070.00016.39
7.4.220.0030.00516.38
7.4.210.0040.01016.54
7.4.200.0030.00316.61
7.4.160.0050.01116.49
7.4.140.0060.01417.86
7.4.130.0100.00716.52
7.4.120.0100.00916.45
7.4.110.0120.00616.57
7.4.100.0140.00716.36
7.4.90.0130.00816.51
7.4.80.0100.01119.39
7.4.70.0060.01116.50
7.4.60.0060.00916.69
7.4.50.0070.01116.51
7.4.40.0120.00416.47
7.4.00.0060.00614.91
7.3.330.0030.00313.29
7.3.320.0000.00613.36
7.3.310.0030.00616.37
7.3.300.0060.00016.35
7.3.290.0030.00316.37
7.3.280.0070.01016.37
7.3.260.0100.01016.39
7.3.240.0070.01016.38
7.3.230.0040.01216.59
7.3.210.0160.00616.32
7.3.200.0100.00716.30
7.3.190.0060.01416.23
7.3.180.0120.00316.52
7.3.170.0070.01316.23
7.3.160.0110.01116.41
7.3.10.0050.00616.41
7.3.00.0030.00716.31
7.2.330.0150.00316.46
7.2.320.0050.01516.60
7.2.310.0140.00416.72
7.2.300.0130.00816.50
7.2.290.0080.00916.43
7.2.130.0080.00516.65
7.2.120.0050.00616.67
7.2.110.0070.01016.72
7.2.100.0070.00816.74
7.2.90.0070.00816.70
7.2.80.0080.00816.60
7.2.70.0080.00916.81
7.2.60.0080.00716.71
7.2.50.0120.00316.68
7.2.40.0130.00516.74
7.2.30.0070.00616.70
7.2.20.0040.00816.77
7.2.10.0070.00716.80
7.2.00.0030.00716.78
7.1.250.0120.00315.50
7.1.230.0060.01015.85
7.1.220.0100.00015.60
7.1.210.0070.00715.71
7.1.200.0040.00815.83
7.1.190.0060.00915.32
7.1.180.0050.00515.76
7.1.170.0050.00515.61
7.1.160.0110.00315.87
7.1.150.0060.00815.68
7.1.140.0120.00215.59
7.1.130.0120.00015.65
7.1.120.0120.00015.71
7.1.110.0070.00315.45
7.1.100.0000.01215.73
7.1.90.0100.00015.55
7.1.80.0060.00615.71
7.1.70.0100.00015.69
7.1.60.0230.00833.61
7.1.50.0230.01033.38
7.1.40.0150.01833.75
7.1.30.0280.00433.62
7.1.20.0240.01233.64
7.1.10.0080.00715.56
7.1.00.0050.00515.56
5.6.380.0120.00414.19

preferences:
54.98 ms | 400 KiB | 5 Q