3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static function hi() { self::hello(); } private static function hello() { $cl = function(){ $clss = 'Left'; echo $clss::$prot; }; $cl(); } } class Left extends Base { protected static $prot = 'Hello, world!'; } class Right extends Base { } Right::hi();

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.0040.01418.55
8.3.50.0070.01221.85
8.3.40.0110.00418.56
8.3.30.0030.01019.04
8.3.20.0070.00020.34
8.3.10.0080.00020.58
8.3.00.0060.00319.26
8.2.180.0120.00918.01
8.2.170.0170.00022.96
8.2.160.0060.00920.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.21
8.2.110.0060.00320.51
8.2.100.0110.00018.03
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0000.00718.04
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0030.00519.20
8.2.20.0040.00417.68
8.2.10.0040.00418.03
8.2.00.0080.00017.69
8.1.280.0150.00025.92
8.1.270.0050.00523.83
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0040.00423.71
8.1.230.0070.00419.02
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0040.00418.55
8.1.160.0000.00722.06
8.1.150.0050.00318.80
8.1.140.0000.00817.51
8.1.130.0000.00717.87
8.1.120.0080.00017.53
8.1.110.0040.00417.48
8.1.100.0030.00617.40
8.1.90.0030.00317.48
8.1.80.0040.00417.41
8.1.70.0030.00317.38
8.1.60.0060.00317.54
8.1.50.0040.00417.43
8.1.40.0000.00817.57
8.1.30.0030.00517.68
8.1.20.0040.00417.60
8.1.10.0040.00417.58
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0000.00718.46
8.0.270.0070.00017.25
8.0.260.0060.00017.14
8.0.250.0030.00316.93
8.0.240.0070.00017.00
8.0.230.0000.00716.88
8.0.220.0070.00016.86
8.0.210.0060.00016.81
8.0.200.0030.00316.98
8.0.190.0040.00416.83
8.0.180.0040.00416.96
8.0.170.0080.00016.90
8.0.160.0000.00716.94
8.0.150.0000.00816.73
8.0.140.0000.00716.81
8.0.130.0000.00513.30
8.0.120.0040.00416.89
8.0.110.0000.00816.87
8.0.100.0070.00016.85
8.0.90.0040.00416.87
8.0.80.0150.00016.81
8.0.70.0000.00717.00
8.0.60.0070.00016.67
8.0.50.0030.00616.79
8.0.30.0090.01017.07
8.0.20.0130.01117.40
8.0.10.0030.00517.05
8.0.00.0080.00816.97
7.4.330.0050.00015.23
7.4.320.0030.00316.64
7.4.300.0070.00016.52
7.4.290.0040.00416.66
7.4.280.0040.00416.50
7.4.270.0030.00316.52
7.4.260.0040.00416.60
7.4.250.0070.00016.52
7.4.240.0020.00516.53
7.4.230.0030.00316.50
7.4.220.0120.00916.52
7.4.210.0030.01016.49
7.4.200.0040.00416.40
7.4.160.0070.01016.59
7.4.150.0140.00617.40
7.4.140.0080.00917.86
7.4.130.0080.00916.49
7.4.120.0040.01316.57
7.4.110.0040.01316.36
7.4.100.0060.01116.51
7.4.90.0090.00916.41
7.4.80.0120.00619.37
7.4.70.0100.00716.55
7.4.60.0030.01316.42
7.4.50.0000.00516.72
7.4.40.0040.01116.51
7.4.30.0030.01516.45
7.4.00.0110.00514.99
7.3.330.0030.00213.36
7.3.320.0030.00313.19
7.3.310.0030.00316.32
7.3.300.0030.00316.38
7.3.290.0000.01416.34
7.3.280.0070.01016.34
7.3.270.0140.01117.40
7.3.260.0090.00816.36
7.3.250.0080.01216.47
7.3.240.0210.00016.43
7.3.230.0060.01216.39
7.3.210.0160.00616.50
7.3.200.0100.00619.39
7.3.190.0120.00916.51
7.3.180.0030.01316.23
7.3.170.0120.00616.69
7.3.160.0190.00316.55
7.3.120.0130.00514.90
7.3.110.0070.00914.81
7.3.100.0050.01114.81
7.3.90.0050.00814.72
7.3.80.0040.00914.98
7.3.70.0070.00514.76
7.3.60.0060.00914.69
7.3.50.0030.01114.78
7.3.40.0030.00814.72
7.3.30.0130.00314.78
7.3.20.0060.00616.69
7.3.10.0040.00716.72
7.3.00.0030.01016.76
7.2.330.0100.00716.48
7.2.320.0030.01316.66
7.2.310.0160.00616.42
7.2.300.0160.00616.65
7.2.290.0060.01216.68
7.2.250.0030.01614.95
7.2.240.0020.01615.00
7.2.230.0070.00915.13
7.2.220.0090.00414.87
7.2.210.0030.01015.07
7.2.200.0070.00714.89
7.2.190.0120.00515.20
7.2.180.0050.00814.85
7.2.170.0060.00915.15
7.2.160.0030.01114.82
7.2.150.0030.01316.77
7.2.140.0090.00417.09
7.2.130.0030.00916.90
7.2.120.0040.01117.04
7.2.110.0090.00916.95
7.2.100.0030.00717.07
7.2.90.0070.00716.98
7.2.80.0030.01016.90
7.2.70.0070.01116.74
7.2.60.0120.00316.95
7.2.50.0060.00916.81
7.2.40.0030.01317.02
7.2.30.0080.00416.96
7.2.20.0040.01117.12
7.2.10.0100.00316.71
7.2.00.0090.00517.90
7.1.330.0060.00815.62
7.1.320.0030.01115.65
7.1.310.0100.00315.78
7.1.300.0040.00915.66
7.1.290.0050.00915.47
7.1.280.0060.00615.63
7.1.270.0110.00115.69
7.1.260.0030.00815.76
7.1.250.0080.00015.64
7.1.200.0100.00315.81
7.1.100.0030.00917.66
7.1.70.0000.01717.09
7.1.60.0140.01019.32
7.1.50.0130.00616.92
7.1.00.0070.07322.43
7.0.200.0040.00416.63
7.0.140.0030.07321.92
7.0.60.0100.08319.84
7.0.50.0130.03017.83
7.0.40.0030.08320.15
7.0.30.0230.05020.32
7.0.20.0200.06020.09
7.0.10.0070.04020.33
7.0.00.0100.05020.09
5.6.280.0030.07320.79
5.6.210.0000.04720.70
5.6.200.0070.05318.25
5.6.190.0070.05320.57
5.6.180.0430.06320.47
5.6.170.0230.06320.50
5.6.160.0070.07020.54
5.6.150.0100.07718.21
5.6.140.0070.03718.19
5.6.130.0070.06018.13
5.6.120.0100.08320.75
5.6.110.0070.05721.14
5.6.100.0100.08321.02
5.6.90.0070.08720.98
5.6.80.0100.07320.39
5.5.350.0100.08720.41
5.5.340.0100.04018.09
5.5.330.0070.05320.44
5.5.320.0300.04720.29
5.5.310.0300.07320.24
5.5.300.0070.04318.01
5.5.290.0100.05018.07
5.5.280.0070.03720.88
5.5.270.0070.04320.67
5.5.260.0030.08720.65
5.5.250.0170.06020.58
5.5.240.0200.07320.20
5.4.450.0130.03719.13
5.4.440.1130.06719.61
5.4.430.1170.05719.61
5.4.420.0700.00019.56
5.4.410.0700.00019.44
5.4.400.0770.00019.09
5.4.390.0600.00019.12
5.4.380.0370.05318.80
5.4.370.0470.06718.70
5.4.360.0230.05718.73
5.4.350.0230.05718.82
5.4.340.0570.04718.77
5.4.320.0060.03712.51
5.4.310.0060.04012.51
5.4.300.0030.04012.51
5.4.290.0050.04512.50
5.4.280.0060.03612.41
5.4.270.0070.03412.41
5.4.260.0060.03812.40
5.4.250.0070.03612.40
5.4.240.0110.03112.41
5.4.230.0050.03712.39
5.4.220.0080.03912.40
5.4.210.0080.03212.40
5.4.200.0020.04012.39
5.4.190.0040.03712.39
5.4.180.0020.03812.39
5.4.170.0040.03712.40
5.4.160.0060.03412.39
5.4.150.0070.03812.39
5.4.140.0040.03812.07
5.4.130.0050.04012.07
5.4.120.0030.04412.02
5.4.110.0070.03412.02
5.4.100.0060.03912.02
5.4.90.0050.05012.02
5.4.80.0030.03912.02
5.4.70.0020.03612.02
5.4.60.0020.03712.01
5.4.50.0070.03312.01
5.4.40.0070.03212.00
5.4.30.0070.03312.00
5.4.20.0050.03412.00
5.4.10.0060.03312.00
5.4.00.0060.03511.48
5.3.290.0070.03812.80
5.3.280.0040.04512.71
5.3.270.0040.03912.72
5.3.260.0080.04112.72
5.3.250.0050.03612.72
5.3.240.0070.03512.71
5.3.230.0040.03912.71
5.3.220.0080.04312.68
5.3.210.0080.04212.68
5.3.200.0070.03412.68
5.3.190.0060.04112.68
5.3.180.0040.04012.67
5.3.170.0070.03612.67
5.3.160.0070.03612.67
5.3.150.0040.03912.68
5.3.140.0030.04012.66
5.3.130.0060.04012.66
5.3.120.0100.04812.66
5.3.110.0070.05312.66
5.3.100.0070.04112.13
5.3.90.0040.03912.11
5.3.80.0090.03712.11
5.3.70.0050.04012.10
5.3.60.0070.03512.09
5.3.50.0030.03812.04
5.3.40.0070.03512.04
5.3.30.0070.03411.99
5.3.20.0050.03511.77
5.3.10.0060.03411.74
5.3.00.0050.03611.73
5.2.170.0070.0279.22
5.2.160.0040.0299.23
5.2.150.0060.0369.22
5.2.140.0150.0399.22
5.2.130.0050.0299.18
5.2.120.0090.0229.18
5.2.110.0020.0309.18
5.2.100.0090.0369.18
5.2.90.0080.0379.18
5.2.80.0070.0339.18
5.2.70.0070.0279.18
5.2.60.0050.0309.13
5.2.50.0050.0319.10
5.2.40.0050.0299.08
5.2.30.0030.0339.05
5.2.20.0050.0289.04
5.2.10.0060.0278.95
5.2.00.0070.0288.81
5.1.60.0030.0258.10
5.1.50.0050.0248.09
5.1.40.0050.0238.07
5.1.30.0030.0278.43
5.1.20.0050.0268.45
5.1.10.0040.0268.17
5.1.00.0040.0258.16
5.0.50.0020.0226.64
5.0.40.0030.0206.50
5.0.30.0050.0306.31
5.0.20.0040.0196.29
5.0.10.0040.0186.26
5.0.00.0030.0336.26
4.4.90.0040.0164.78
4.4.80.0030.0154.76
4.4.70.0020.0164.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0030.0244.70
4.4.30.0030.0154.76
4.4.20.0030.0164.85
4.4.10.0020.0164.85
4.4.00.0010.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0174.67
4.3.90.0020.0154.63
4.3.80.0040.0234.58
4.3.70.0060.0174.63
4.3.60.0040.0164.63
4.3.50.0010.0174.62
4.3.40.0020.0284.54
4.3.30.0030.0183.30
4.3.20.0000.0213.28
4.3.10.0020.0173.23
4.3.00.0000.01715.62

preferences:
34.91 ms | 401 KiB | 5 Q