3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testing { protected function _getClass() { return 'testing_two'; } public function new() { $class = $this->getClass(); return new $class(); } } class testing_two extends testing { } $a = new testing(); var_dump($a->new());

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.0090.01218.19
8.3.50.0110.00721.97
8.3.40.0140.00418.74
8.3.30.0110.00418.68
8.3.20.0020.00520.39
8.3.10.0040.00423.67
8.3.00.0000.00819.73
8.2.180.0100.01316.50
8.2.170.0140.00422.96
8.2.160.0140.00020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.45
8.2.120.0080.00026.35
8.2.110.0050.00521.07
8.2.100.0000.01117.91
8.2.90.0080.00018.03
8.2.80.0040.00419.20
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0040.00722.20
8.2.30.0030.00520.56
8.2.20.0000.00717.68
8.2.10.0040.00418.08
8.2.00.0040.00418.05
8.1.280.0120.00925.92
8.1.270.0150.00020.20
8.1.260.0040.00428.09
8.1.250.0020.00528.09
8.1.240.0030.00622.05
8.1.230.0070.00420.97
8.1.220.0040.00417.74
8.1.210.0000.00818.86
8.1.200.0070.00317.35
8.1.190.0030.00517.10
8.1.180.0050.00318.10
8.1.170.0040.00718.47
8.1.160.0070.00020.61
8.1.150.0050.00318.68
8.1.140.0040.00419.51
8.1.130.0000.00817.63
8.1.120.0000.00717.45
8.1.110.0060.00317.43
8.1.100.0000.00817.43
8.1.90.0040.00417.43
8.1.80.0000.00817.36
8.1.70.0070.00017.35
8.1.60.0030.00617.59
8.1.50.0040.00417.42
8.1.40.0050.00317.41
8.1.30.0000.00917.65
8.1.20.0040.00417.56
8.1.10.0000.00717.57
8.1.00.0080.00017.52
8.0.300.0000.00720.13
8.0.290.0040.00416.75
8.0.280.0000.00818.39
8.0.270.0040.00417.25
8.0.260.0000.00717.11
8.0.250.0000.00716.85
8.0.240.0000.00816.92
8.0.230.0000.00716.95
8.0.220.0050.00316.93
8.0.210.0000.00716.77
8.0.200.0070.00016.95
8.0.190.0080.00017.00
8.0.180.0040.00416.81
8.0.170.0030.00616.81
8.0.160.0040.00416.80
8.0.150.0000.00716.86
8.0.140.0050.00316.86
8.0.130.0080.00013.39
8.0.120.0050.00316.91
8.0.110.0040.00416.94
8.0.100.0080.00016.75
8.0.90.0020.00516.95
8.0.80.0030.01716.83
8.0.70.0040.00416.87
8.0.60.0000.00816.81
8.0.50.0000.00716.70
8.0.30.0130.00917.07
8.0.20.0130.00717.40
8.0.10.0000.00716.82
8.0.00.0090.01016.79
7.4.330.0050.00016.67
7.4.320.0000.00616.49
7.4.300.0030.00716.45
7.4.290.0030.00316.52
7.4.280.0060.00316.59
7.4.270.0060.00016.62
7.4.260.0000.00716.56
7.4.250.0040.00416.46
7.4.240.0020.00516.54
7.4.230.0030.00316.50
7.4.220.0150.00916.69
7.4.210.0070.00916.64
7.4.200.0050.00216.68
7.4.160.0120.00316.68
7.4.150.0180.00017.40
7.4.140.0050.01317.86
7.4.130.0140.00616.59
7.4.120.0100.01016.47
7.4.110.0120.00616.54
7.4.100.0120.00616.66
7.4.90.0070.01016.63
7.4.80.0040.01819.39
7.4.70.0080.00816.58
7.4.60.0100.00716.51
7.4.50.0100.00616.38
7.4.40.0120.00816.67
7.4.30.0100.01016.61
7.4.00.0090.00614.87
7.3.330.0040.00413.36
7.3.320.0000.00513.29
7.3.310.0070.00016.42
7.3.300.0030.00316.23
7.3.290.0030.00316.41
7.3.280.0120.00616.33
7.3.270.0080.01117.40
7.3.260.0120.00416.35
7.3.250.0150.00616.38
7.3.240.0110.00616.38
7.3.230.0160.00416.39
7.3.210.0130.01016.57
7.3.200.0090.00616.48
7.3.190.0090.01316.42
7.3.180.0140.00516.36
7.3.170.0120.01216.33
7.3.160.0110.00716.60
7.3.120.0070.01014.88
7.3.110.0070.00714.58
7.3.100.0000.01014.81
7.3.90.0100.00614.70
7.3.80.0030.01014.84
7.3.70.0030.01014.91
7.3.60.0130.00314.61
7.3.50.0040.00414.83
7.3.40.0140.00014.76
7.3.30.0000.01314.86
7.3.20.0040.00816.51
7.3.10.0040.01116.73
7.3.00.0070.00716.57
7.2.330.0090.00916.34
7.2.320.0120.00616.60
7.2.310.0080.00816.65
7.2.300.0000.01616.53
7.2.290.0110.00816.75
7.2.240.0000.01715.04
7.2.230.0040.01115.03
7.2.220.0030.01014.95
7.2.210.0060.00615.05
7.2.200.0030.00915.06
7.2.190.0000.01314.94
7.2.180.0000.01714.64
7.2.170.0090.00915.04
7.2.160.0120.00314.96
7.2.150.0090.00616.86
7.2.140.0040.01417.06
7.2.130.0060.00916.57
7.2.120.0030.01016.57
7.2.110.0070.00316.89
7.2.100.0070.00716.85
7.2.90.0130.00016.55
7.2.80.0040.01116.55
7.2.70.0090.00316.86
7.2.60.0050.01016.93
7.2.50.0070.01116.80
7.2.40.0110.00416.92
7.2.30.0070.00716.87
7.2.20.0100.00316.91
7.2.10.0060.01016.91
7.2.00.0030.01216.91
7.1.330.0030.01015.86
7.1.320.0070.00715.80
7.1.310.0080.00315.54
7.1.300.0070.00715.61
7.1.290.0000.01515.76
7.1.280.0070.00715.78
7.1.270.0040.01115.49
7.1.260.0030.01415.77
7.1.250.0030.01015.73
7.1.200.0030.00615.75
7.1.70.0070.00317.09
7.1.60.0090.01319.52
7.1.50.0070.01416.77
7.1.00.0100.07022.51
7.0.200.0030.00616.57
7.0.60.0070.08320.04
7.0.50.0200.07017.98
7.0.40.0100.07720.32
7.0.30.0430.07320.11
7.0.20.0270.07720.22
7.0.10.0100.08720.10
7.0.00.0030.08720.32
5.6.280.0000.03320.99
5.6.210.0130.08020.48
5.6.200.0070.06718.13
5.6.190.0030.06720.67
5.6.180.0270.07320.60
5.6.170.0300.04020.51
5.6.160.0070.08320.48
5.6.150.0030.08718.16
5.6.140.0070.06718.18
5.6.130.0130.07318.29
5.6.120.0170.07321.02
5.6.110.0100.05021.01
5.6.100.0130.04021.13
5.6.90.0070.06320.98
5.6.80.0030.06720.52
5.5.350.0130.09020.44
5.5.340.0070.04318.09
5.5.330.0300.06320.38
5.5.320.0430.05020.38
5.5.310.0270.06020.27
5.5.300.0000.05018.07
5.5.290.0000.08718.02
5.5.280.0100.04720.85
5.5.270.0030.05020.80
5.5.260.0130.08320.89
5.5.250.0030.04720.58
5.5.240.0100.06020.24

preferences:
55.72 ms | 401 KiB | 5 Q