3v4l.org

run code in 300+ PHP versions simultaneously
<?php $try = new Instance; echo $try; class Model{ public function __construct(){ //$this->init(); } public function init() { return $this->className(); } public function __toString() { return $this->className(); } public function className() { return get_called_class(); } } class Instance extends Model { public function init() { echo "tada! "; } }

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.0070.01418.43
8.3.50.0140.00321.93
8.3.40.0100.00718.92
8.3.30.0070.00719.13
8.3.20.0030.00620.38
8.3.10.0040.00422.09
8.3.00.0080.00022.44
8.2.180.0210.00016.75
8.2.170.0150.00022.96
8.2.160.0070.00720.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.01026.16
8.2.120.0090.00019.36
8.2.110.0030.00619.31
8.2.100.0110.00017.91
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0090.00017.91
8.2.50.0030.00718.07
8.2.40.0040.00417.97
8.2.30.0050.00218.00
8.2.20.0070.00017.72
8.2.10.0040.00419.43
8.2.00.0040.00417.71
8.1.280.0070.00725.92
8.1.270.0080.00021.95
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00321.99
8.1.230.0110.00020.89
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0050.00317.40
8.1.180.0000.00818.10
8.1.170.0000.00818.45
8.1.160.0030.00521.88
8.1.150.0040.00418.37
8.1.140.0000.00717.26
8.1.130.0030.00317.68
8.1.120.0080.00017.39
8.1.110.0070.00017.31
8.1.100.0040.00417.26
8.1.90.0050.00317.36
8.1.80.0050.00217.23
8.1.70.0030.00317.35
8.1.60.0060.00317.40
8.1.50.0080.00017.35
8.1.40.0050.00217.46
8.1.30.0000.00717.50
8.1.20.0030.00517.55
8.1.10.0040.00417.45
8.1.00.0070.00017.52
8.0.300.0070.00018.77
8.0.290.0000.00817.05
8.0.280.0000.00818.43
8.0.270.0000.00717.17
8.0.260.0000.00616.77
8.0.250.0000.00616.87
8.0.240.0000.00716.82
8.0.230.0030.00716.84
8.0.220.0030.00316.94
8.0.210.0070.00016.81
8.0.200.0000.00616.96
8.0.190.0080.00016.97
8.0.180.0000.00716.84
8.0.170.0050.00316.80
8.0.160.0040.00416.84
8.0.150.0070.00016.84
8.0.140.0030.00516.79
8.0.130.0000.00513.41
8.0.120.0070.00016.86
8.0.110.0000.00716.91
8.0.100.0050.00316.91
8.0.90.0000.00716.84
8.0.80.0090.00716.93
8.0.70.0040.00416.77
8.0.60.0040.00416.84
8.0.50.0000.00716.73
8.0.30.0100.01216.99
8.0.20.0070.01117.40
8.0.10.0000.00816.82
8.0.00.0110.00816.76
7.4.330.0050.00015.00
7.4.320.0000.00716.45
7.4.300.0030.00316.49
7.4.290.0030.00516.63
7.4.280.0000.00816.59
7.4.270.0040.00416.55
7.4.260.0030.00316.59
7.4.250.0000.00716.48
7.4.240.0000.00716.61
7.4.230.0030.00316.34
7.4.220.0090.00816.48
7.4.210.0060.00916.61
7.4.200.0000.00716.33
7.4.190.0000.00716.64
7.4.160.0140.00416.62
7.4.150.0030.01417.40
7.4.140.0120.00717.86
7.4.130.0150.00216.51
7.4.120.0100.00716.52
7.4.110.0070.01016.46
7.4.100.0060.01616.43
7.4.90.0190.00616.47
7.4.80.0110.00716.41
7.4.70.0130.00316.53
7.4.60.0030.01416.51
7.4.50.0000.00816.18
7.4.40.0060.00922.77
7.4.30.0130.00716.51
7.4.00.0090.00715.09
7.3.330.0030.00313.25
7.3.320.0000.00513.21
7.3.310.0000.00716.11
7.3.300.0000.00716.23
7.3.290.0090.00616.23
7.3.280.0060.00816.21
7.3.270.0060.01217.40
7.3.260.0100.00716.36
7.3.250.0090.01016.37
7.3.240.0130.00316.54
7.3.230.0000.02016.39
7.3.210.0070.01016.31
7.3.200.0120.01219.39
7.3.190.0150.00616.20
7.3.180.0030.01416.53
7.3.170.0120.00416.41
7.3.160.0110.00616.28
7.3.120.0040.01214.88
7.3.110.0060.01314.98
7.3.100.0090.00614.91
7.3.90.0060.00314.65
7.3.80.0040.01114.86
7.3.70.0080.00414.57
7.3.60.0080.00814.81
7.3.50.0070.01114.88
7.3.40.0040.00714.72
7.3.30.0040.00414.79
7.3.20.0040.00716.66
7.3.10.0030.00716.59
7.3.00.0030.01016.36
7.2.330.0060.01316.38
7.2.320.0100.00716.76
7.2.310.0140.00316.39
7.2.300.0140.00316.71
7.2.290.0090.00616.73
7.2.250.0090.00914.86
7.2.240.0090.00314.65
7.2.230.0030.01014.83
7.2.220.0030.00815.23
7.2.210.0070.00415.20
7.2.200.0030.01015.11
7.2.190.0060.00915.10
7.2.180.0080.00414.97
7.2.170.0000.01214.91
7.2.60.0120.00016.58
7.2.00.0050.00819.13
7.1.330.0040.01115.47
7.1.320.0050.00515.74
7.1.310.0030.01015.97
7.1.300.0100.00615.57
7.1.290.0060.00315.78
7.1.280.0100.00315.76
7.1.270.0060.00915.71
7.1.260.0060.00615.66
7.1.200.0060.00615.47
7.1.100.0060.00618.09
7.1.70.0000.00717.32
7.1.60.0110.01419.82
7.1.50.0100.01417.08
7.1.00.0030.07722.36
7.0.200.0090.00616.77
7.0.140.0070.07022.05
7.0.60.0070.06320.01
7.0.50.0030.08017.95
7.0.40.0130.08020.18
7.0.30.0300.07320.26
7.0.20.0300.07020.10
7.0.10.0230.05020.24
7.0.00.0030.05320.09
5.6.280.0100.06720.82
5.6.210.0070.08020.77
5.6.200.0000.05718.27
5.6.190.0170.08020.51
5.6.180.3470.04320.58
5.6.170.0200.07020.45
5.6.160.0170.07320.50
5.6.150.0030.08018.27
5.6.140.0070.04318.27
5.6.130.0170.07318.24
5.6.120.0100.08721.00
5.6.110.0100.04320.98
5.6.100.0100.06320.98
5.6.90.0100.08021.04
5.6.80.0100.07020.38
5.5.350.0070.07320.43
5.5.340.0070.05018.01
5.5.330.0130.04320.30
5.5.320.0300.07020.34
5.5.310.0200.04020.25
5.5.300.0070.05717.96
5.5.290.0030.04018.08
5.5.280.0070.08020.98
5.5.270.0000.05720.68
5.5.260.0000.08320.77
5.5.250.0070.06020.47
5.5.240.0000.04320.30
5.4.450.0170.05019.08
5.4.440.0100.06019.18
5.4.430.0300.04019.54
5.4.420.0030.06319.51
5.4.410.0100.06019.29
5.4.400.0770.00018.66
5.4.390.1170.00018.51
5.4.380.0370.05018.50
5.4.370.0300.05018.63
5.4.360.0230.04718.84
5.4.350.0370.04318.70
5.4.340.0200.05318.72
5.4.320.0070.04212.50
5.4.310.0050.04112.50
5.4.300.0030.03912.51
5.4.290.0060.03812.50
5.4.280.0060.03612.40
5.4.270.0230.04018.75
5.4.260.0170.05018.64
5.4.250.0130.07318.62
5.4.240.0070.08718.80
5.4.230.0130.06019.00
5.4.220.0130.07719.00
5.4.210.0170.07018.95
5.4.200.0170.06318.99
5.4.190.0170.06319.00
5.4.180.0070.05718.89
5.4.170.0130.06319.02
5.4.160.0100.07018.83
5.4.150.0170.05318.93
5.4.140.0100.07716.40
5.4.130.0070.06016.38
5.4.120.0100.06716.60
5.4.110.0130.05716.54
5.4.100.0200.06016.43
5.4.90.0130.07316.55
5.4.80.0170.06316.51
5.4.70.0070.07716.62
5.4.60.0070.05716.39
5.4.50.0170.05016.34
5.4.40.0070.06716.58
5.4.30.0130.06316.45
5.4.20.0130.06716.38
5.4.10.0100.05716.38
5.4.00.0130.06715.82
5.3.290.0060.04012.80
5.3.280.0100.05314.76
5.3.270.0200.05314.70
5.3.260.0100.07014.61
5.3.250.0000.06314.61
5.3.240.0130.07714.69
5.3.230.0070.05714.59
5.3.220.0100.05014.42
5.3.210.0070.06314.66
5.3.200.0070.06014.56
5.3.190.0200.06014.57
5.3.180.0100.05314.72
5.3.170.0070.05314.63
5.3.160.0170.06714.70
5.3.150.0100.05314.80
5.3.140.0170.04714.72
5.3.130.0130.05314.64
5.3.120.0130.04714.63
5.3.110.0170.04714.62
5.3.100.0170.06314.21
5.3.90.0070.07014.12
5.3.80.0170.06014.04
5.3.70.0130.05014.10
5.3.60.0270.04314.02
5.3.50.0130.05013.97
5.3.40.0000.08313.94
5.3.30.0130.06313.91
5.3.20.0100.05013.92
5.3.10.0170.06313.67
5.3.00.0100.07313.82
5.2.170.0100.04311.13
5.2.160.0100.04010.98
5.2.150.0070.05011.32
5.2.140.0030.04311.23
5.2.130.0100.04011.18
5.2.120.0000.04711.20
5.2.110.0100.05311.10
5.2.100.0130.04011.07
5.2.90.0070.04311.32
5.2.80.0070.05711.05
5.2.70.0130.04711.18
5.2.60.0070.04011.02
5.2.50.0070.06011.10
5.2.40.0070.05711.18
5.2.30.0130.04311.17
5.2.20.0100.03711.12
5.2.10.0000.05711.03
5.2.00.0130.04710.71
5.1.60.0070.04710.07
5.1.50.0100.0379.84
5.1.40.0070.0439.95
5.1.30.0170.04310.42
5.1.20.0070.05710.43
5.1.10.0070.04010.17
5.1.00.0130.02710.04
5.0.50.0070.0278.62
5.0.40.0000.0308.65
5.0.30.0070.0408.21
5.0.20.0070.0238.44
5.0.10.0070.0338.41
5.0.00.0070.0438.16
4.4.90.0000.0276.91
4.4.80.0070.0306.91
4.4.70.0030.0306.91
4.4.60.0100.0136.91
4.4.50.0100.0176.91
4.4.40.0000.0436.84
4.4.30.0270.0107.19
4.4.20.0170.0177.19
4.4.10.0070.0177.19
4.4.00.0070.0477.19
4.3.110.0070.0207.19
4.3.100.0030.0237.19
4.3.90.0100.0277.19
4.3.80.0030.0307.19
4.3.70.0000.0237.19
4.3.60.0070.0177.19
4.3.50.0100.0177.19
4.3.40.0030.0407.19
4.3.30.0000.0237.19
4.3.20.0000.0307.19
4.3.10.0070.0207.19
4.3.00.0000.0235.86

preferences:
45.48 ms | 401 KiB | 5 Q