3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function who(){ return __CLASS__; } static public function create($params = array()){ $class = static::who(); return new $class($params); } } class bar extends foo {} print_r(new foo); print_r(new bar);

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.0110.00716.63
8.3.50.0150.00416.23
8.3.40.0090.00918.72
8.3.30.0040.01118.74
8.3.20.0040.00418.65
8.3.10.0090.00018.65
8.3.00.0090.00019.13
8.2.180.0040.01516.38
8.2.170.0120.00822.96
8.2.160.0090.00618.50
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0040.00419.70
8.2.110.0060.00319.30
8.2.100.0110.00017.78
8.2.90.0100.00018.83
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0030.00517.68
8.2.50.0040.00417.80
8.2.40.0040.00419.35
8.2.30.0030.00717.68
8.2.20.0000.00817.59
8.2.10.0000.00817.63
8.2.00.0100.00017.47
8.1.280.0110.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0000.00921.12
8.1.230.0110.00017.77
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0000.00718.81
8.1.150.0030.00518.60
8.1.140.0060.00317.32
8.1.130.0030.00519.10
8.1.120.0040.00417.25
8.1.110.0050.00217.21
8.1.100.0040.00417.29
8.1.90.0000.00717.31
8.1.80.0070.00017.39
8.1.70.0030.00317.29
8.1.60.0070.00017.45
8.1.50.0040.00417.35
8.1.40.0000.00817.35
8.1.30.0050.00317.51
8.1.20.0040.00417.37
8.1.10.0000.00817.46
8.1.00.0040.00417.33
8.0.300.0040.00718.77
8.0.290.0040.00416.75
8.0.280.0050.00218.48
8.0.270.0050.00217.22
8.0.260.0060.00016.71
8.0.250.0040.00416.80
8.0.240.0050.00316.79
8.0.230.0040.00416.84
8.0.220.0000.00616.75
8.0.210.0050.00216.76
8.0.200.0070.00016.74
8.0.190.0080.00016.79
8.0.180.0080.00316.82
8.0.170.0030.00516.79
8.0.160.0030.00516.85
8.0.150.0030.00716.66
8.0.140.0040.00416.77
8.0.130.0060.00013.18
8.0.120.0000.01016.76
8.0.110.0040.00416.89
8.0.100.0040.00416.59
8.0.90.0030.00516.76
8.0.80.0060.00916.84
8.0.70.0000.00816.73
8.0.60.0060.00316.79
8.0.50.0030.00616.63
8.0.30.0030.01317.00
8.0.20.0050.01316.90
8.0.10.0040.00416.78
8.0.00.0110.00816.61
7.4.330.0030.00312.73
7.4.320.0000.00716.40
7.4.300.0030.00316.34
7.4.290.0030.00716.49
7.4.280.0000.00816.29
7.4.270.0070.00016.49
7.4.260.0060.00013.15
7.4.250.0000.00816.39
7.4.240.0040.00416.47
7.4.230.0070.00016.47
7.4.220.0090.00916.33
7.4.210.0080.00516.55
7.4.200.0000.00716.58
7.4.190.0000.00816.43
7.4.160.0140.00716.14
7.4.150.0060.01116.50
7.4.140.0090.00917.86
7.4.130.0040.01616.27
7.4.120.0060.01216.28
7.4.110.0100.00716.24
7.4.100.0140.00316.41
7.4.90.0030.01316.37
7.4.80.0140.00919.39
7.4.70.0150.00616.49
7.4.60.0100.01016.40
7.4.50.0050.00016.11
7.4.40.0070.00716.59
7.4.30.0140.00916.32
7.4.00.0000.01414.87
7.3.330.0030.00313.14
7.3.320.0030.00313.01
7.3.310.0000.00616.03
7.3.300.0000.00616.05
7.3.290.0080.00716.17
7.3.280.0130.00616.18
7.3.270.0100.00716.26
7.3.260.0000.02216.07
7.3.240.0060.01216.33
7.3.230.0100.00916.20
7.3.210.0130.00416.31
7.3.200.0060.01016.48
7.3.190.0080.00816.45
7.3.180.0140.00516.12
7.3.170.0110.01116.35
7.3.160.0100.00616.30
7.3.120.0000.01614.71
7.2.330.0110.00716.40
7.2.320.0070.01016.07
7.2.310.0110.00716.33
7.2.300.0100.00716.49
7.2.290.0080.00816.23
7.2.00.0070.00719.23
7.1.100.0190.00618.01
7.1.70.0040.00716.82
7.1.60.0090.00919.25
7.1.50.0140.01434.71
7.1.00.0000.03722.37
7.0.200.0000.00716.79
7.0.140.0070.07021.97
7.0.120.0030.06322.05
7.0.60.0100.08019.79
7.0.50.0030.08317.86
7.0.40.0070.08720.20
7.0.30.0270.08020.12
7.0.20.0330.05320.07
7.0.10.0330.06720.24
7.0.00.0100.08720.15
5.6.280.0030.07321.04
5.6.210.0000.08720.70
5.6.200.0030.04318.18
5.6.190.0070.07320.68
5.6.180.0330.04020.67
5.6.170.0400.04320.51
5.6.160.0030.08720.41
5.6.150.0130.07018.19
5.6.140.0070.04018.18
5.6.130.0130.07718.28
5.6.120.0030.04720.94
5.6.110.0100.06021.04
5.6.100.0070.04321.13
5.6.90.0170.07321.08
5.6.80.0030.06020.37
5.6.70.3630.04320.50
5.5.350.0170.04320.39
5.5.340.0030.04018.03
5.5.330.0130.05020.27
5.5.320.0430.07020.36
5.5.310.0330.07020.51
5.5.300.0100.06017.95
5.5.290.0030.04318.08
5.5.280.0100.05020.82
5.5.270.0030.07320.84
5.5.260.0000.04320.68
5.5.250.0170.07720.48
5.5.240.0070.07720.27
5.4.450.0330.07019.54
5.4.440.3770.04019.38
5.4.430.0100.05319.55
5.4.420.0030.06019.42
5.4.410.0200.06019.13
5.4.400.0100.05319.32
5.4.390.0170.04319.06
5.4.380.0300.05018.70
5.4.370.0030.04718.58
5.4.360.0100.03718.50
5.4.350.0040.03512.02
5.4.340.0100.03712.01
5.4.320.0050.04412.50
5.4.310.0030.04012.50
5.4.300.0130.04912.50
5.4.290.0110.05812.50
5.4.280.0110.04912.39
5.4.270.0100.05912.39
5.4.260.0070.05112.39
5.4.250.0140.07212.39
5.4.240.0100.06612.39
5.4.230.0110.08812.38
5.4.220.0130.05512.39
5.4.210.0100.04912.39
5.4.200.0090.05112.39
5.4.190.0080.04812.38
5.4.180.0100.05112.38
5.4.170.0100.05112.40
5.4.160.0060.05112.39
5.4.150.0070.05012.39
5.4.140.0090.05312.07
5.4.130.0080.04812.06
5.4.120.0080.04812.02
5.4.110.0080.04312.01
5.4.100.0060.04412.01
5.4.90.0110.04912.01
5.4.80.0110.04812.01
5.4.70.0110.04412.00
5.4.60.0070.04412.01
5.4.50.0090.04712.01
5.4.40.0080.04612.00
5.4.30.0090.04412.00
5.4.20.0100.05111.99
5.4.10.0080.04512.00
5.4.00.0080.04811.48
5.3.290.0070.04212.80
5.3.280.0100.05512.71
5.3.270.0080.05212.72
5.3.260.0090.05812.72
5.3.250.0080.05212.72
5.3.240.0090.05012.72
5.3.230.0110.05912.71
5.3.220.0130.07212.68
5.3.210.0100.05512.68
5.3.200.0100.05112.68
5.3.190.0100.04712.68
5.3.180.0110.04512.67
5.3.170.0090.04512.67
5.3.160.0180.06412.67
5.3.150.0100.04712.68
5.3.140.0100.04412.66
5.3.130.0090.04912.66
5.3.120.0140.04312.66
5.3.110.0100.05212.66
5.3.100.0070.04812.12
5.3.90.0090.04712.10
5.3.80.0110.07212.10
5.3.70.0130.06312.10

preferences:
42.66 ms | 401 KiB | 5 Q