3v4l.org

run code in 300+ PHP versions simultaneously
<?php class gp { public function __construct($a){ echo 'gp'.$a."\n"; } } class p extends gp { } class c extends p { public function __construct(){ parent::__construct('i am child'); } } $c = new c();

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.40.0130.00718.42
8.3.30.0070.00718.39
8.3.20.0040.00418.65
8.3.10.0050.00320.80
8.3.00.0040.00419.69
8.2.170.0110.00422.96
8.2.160.0100.00320.46
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00021.12
8.2.110.0070.01022.20
8.2.100.0110.00017.91
8.2.90.0030.00617.59
8.2.80.0080.00018.91
8.2.70.0040.00417.50
8.2.60.0000.00817.50
8.2.50.0050.00317.55
8.2.40.0040.00419.23
8.2.30.0040.00417.55
8.2.20.0000.00717.70
8.2.10.0000.00717.67
8.2.00.0040.00417.63
8.1.270.0040.00423.99
8.1.260.0050.00526.35
8.1.250.0000.00728.09
8.1.240.0060.00324.02
8.1.230.0110.00019.15
8.1.220.0040.00418.68
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0070.00317.00
8.1.180.0040.00418.10
8.1.170.0060.00317.62
8.1.160.0040.00418.89
8.1.150.0070.00018.59
8.1.140.0040.00417.48
8.1.130.0000.00717.45
8.1.120.0000.00817.47
8.1.110.0050.00317.39
8.1.100.0040.00417.36
8.1.90.0040.00417.34
8.1.80.0040.00317.45
8.1.70.0000.00717.41
8.1.60.0000.00717.63
8.1.50.0000.00817.45
8.1.40.0070.00017.49
8.1.30.0030.00617.47
8.1.20.0050.00317.59
8.1.10.0050.00217.43
8.1.00.0040.00417.35
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00317.87
8.0.270.0070.00018.05
8.0.260.0030.00316.82
8.0.250.0050.00216.99
8.0.240.0070.00016.98
8.0.230.0030.00316.96
8.0.220.0040.00416.86
8.0.210.0000.00716.79
8.0.200.0030.00616.93
8.0.190.0030.00616.93
8.0.180.0070.00016.84
8.0.170.0030.00516.89
8.0.160.0030.00316.79
8.0.150.0000.00816.86
8.0.140.0070.00016.80
8.0.130.0000.00513.35
8.0.120.0040.00416.84
8.0.110.0040.00316.78
8.0.100.0040.00416.86
8.0.90.0070.00016.82
8.0.80.0060.00916.87
8.0.70.0040.00416.79
8.0.60.0050.00316.70
8.0.50.0000.00716.69
8.0.30.0080.01117.14
8.0.20.0120.00717.40
8.0.10.0000.00716.83
8.0.00.0040.01316.58
7.4.330.0050.00016.86
7.4.320.0030.00316.45
7.4.300.0040.00416.60
7.4.290.0030.00316.48
7.4.280.0000.00716.57
7.4.270.0000.00716.52
7.4.260.0080.00016.56
7.4.250.0030.00516.50
7.4.240.0050.00216.52
7.4.230.0000.00716.58
7.4.220.0100.01316.48
7.4.210.0070.00816.63
7.4.200.0050.00216.39
7.4.190.0030.00316.66
7.4.160.0030.01316.49
7.4.150.0170.00017.40
7.4.140.0050.01317.86
7.4.130.0120.00516.55
7.4.120.0100.01016.54
7.4.110.0140.00716.56
7.4.100.0100.00716.52
7.4.90.0130.00616.33
7.4.80.0130.00619.39
7.4.70.0110.01116.43
7.4.60.0070.00716.59
7.4.50.0050.00016.50
7.4.40.0050.00522.77
7.4.30.0120.01216.48
7.4.00.0100.00614.90
7.3.330.0040.00413.17
7.3.320.0000.00713.17
7.3.310.0000.00616.12
7.3.300.0020.00516.30
7.3.290.0040.01616.27
7.3.280.0060.01116.30
7.3.270.0120.01217.40
7.3.260.0100.00818.24
7.3.250.0160.00516.42
7.3.240.0100.00716.24
7.3.230.0060.01016.49
7.3.210.0100.00716.22
7.3.200.0170.00319.39
7.3.190.0170.00316.25
7.3.180.0150.00016.43
7.3.170.0060.01516.45
7.3.160.0110.00416.62
7.3.120.0070.01114.66
7.2.330.0030.01416.69
7.2.320.0160.00016.84
7.2.310.0090.01216.63
7.2.300.0110.01116.42
7.2.290.0060.01016.68
7.2.60.0110.00316.85
7.2.00.0030.00919.32
7.1.200.0000.01215.61
7.1.100.0780.00615.96
7.1.70.0070.00017.07
7.1.60.0000.01017.17
7.1.50.0030.00716.77
7.1.40.0030.00916.47
7.1.30.0090.00316.39
7.1.20.0120.00616.66
7.1.10.0080.00016.54
7.1.00.0000.01016.50
7.0.200.0000.00716.60
7.0.190.0040.00416.77
7.0.180.0040.00416.37
7.0.170.0110.00416.04
7.0.160.0000.00816.21
7.0.150.0000.00716.16
7.0.140.0000.01016.21
7.0.130.0060.00316.34
7.0.120.0080.00016.58
7.0.110.0000.00716.43
7.0.100.0000.00716.37
7.0.90.0040.00416.38
7.0.80.0000.00816.46
7.0.70.0050.00216.38
7.0.60.0050.00516.30
7.0.50.0040.00416.34
7.0.40.0040.00414.98
7.0.30.0060.00614.98
7.0.20.0000.00714.98
7.0.10.0000.00814.98
7.0.00.0070.00314.98
5.6.300.0030.04020.64
5.6.290.0000.04420.80
5.6.280.0100.04320.98
5.6.270.0160.04220.91
5.6.260.0000.04720.99
5.6.250.0030.04221.00
5.6.240.0040.04320.96
5.6.230.0000.04820.95
5.6.220.0070.04420.93
5.6.210.0000.04720.64
5.6.200.0060.04120.99
5.6.190.0040.04320.83
5.6.180.0040.04120.84
5.6.170.0060.03921.05
5.6.160.0030.04821.04
5.6.150.0030.04320.83
5.6.140.0030.04621.02
5.6.130.0090.03820.95
5.6.120.0000.04520.77
5.6.110.0060.04220.95
5.6.100.0030.04921.04
5.6.90.0070.03820.92
5.6.80.0030.03920.20
5.6.70.0100.03520.33
5.6.60.0060.06420.35
5.6.50.0130.02920.12
5.6.40.0030.06020.19
5.6.30.0030.06020.20
5.6.20.0030.04520.16
5.6.10.0070.03620.13
5.6.00.0060.03620.36
5.5.380.0000.04517.48
5.5.370.0060.03517.61
5.5.360.0030.04517.57
5.5.350.0040.03917.43
5.5.340.0000.04617.83
5.5.330.0200.02718.09
5.5.320.0030.04118.09
5.5.310.0070.04918.11
5.5.300.0000.04517.74
5.5.290.0000.04417.83
5.5.280.0070.03717.72
5.5.270.0000.04318.12
5.5.260.0030.05118.16
5.5.250.0030.05117.67
5.5.240.0000.04717.48
5.5.230.0000.06217.41
5.5.220.0030.05417.38
5.5.210.0000.04117.55
5.5.200.0060.03517.48
5.5.190.0030.04317.34
5.5.180.0030.04017.21
5.5.160.0100.03317.39
5.5.150.0160.04017.21
5.5.140.0040.03917.20
5.5.130.0130.03217.43
5.5.120.0000.04117.45
5.5.110.0030.07917.36
5.5.100.0000.04617.38
5.5.90.0070.03317.33
5.5.80.0070.07317.42
5.5.70.0030.03716.94
5.5.60.0040.03917.25
5.5.50.0030.04117.33
5.5.40.0000.04017.10
5.5.30.0070.07717.07
5.5.20.0030.04517.32
5.5.10.0000.04017.33
5.5.00.0030.03817.31
5.4.450.0100.03519.47
5.4.440.0030.04219.30
5.4.430.0000.06619.52
5.4.420.0070.03719.52
5.4.410.0030.04219.40
5.4.400.0000.03919.11
5.4.390.0030.04018.91
5.4.380.0000.04119.20
5.4.370.0000.06318.94
5.4.360.0030.08218.94
5.4.350.0030.03719.24
5.4.340.0000.04519.04
5.4.320.0060.03519.23
5.4.310.0000.04419.05
5.4.300.0070.03918.89
5.4.290.0030.06719.07
5.4.280.0060.03518.88
5.4.270.0030.08318.91
5.4.260.0000.08418.94
5.4.250.0060.05819.05
5.4.240.0030.06219.07
5.4.230.0030.05719.14
5.4.220.0070.03819.22
5.4.210.0130.02819.20
5.4.200.0030.04819.14
5.4.190.0100.05919.04
5.4.180.0100.03319.07
5.4.170.0000.04519.19
5.4.160.0070.06818.96
5.4.150.0100.03119.11
5.4.140.0040.04016.82
5.4.130.0000.03816.55
5.4.120.0070.03016.72
5.4.110.0000.04316.82
5.4.100.0070.03316.79
5.4.90.0030.03616.75
5.4.80.0030.03416.78
5.4.70.0030.03316.63
5.4.60.0090.02816.71
5.4.50.0000.04116.61
5.4.40.0030.04316.77
5.4.30.0030.03316.71
5.4.20.0100.03716.45
5.4.10.0030.03816.71
5.4.00.0030.03716.21
5.3.290.0030.06714.98
5.3.280.0070.03714.98
5.3.270.0030.03714.98
5.3.260.0030.05914.98
5.3.250.0030.03614.98
5.3.240.0030.03614.98
5.3.230.0030.03814.98
5.3.220.0000.04014.98
5.3.210.0000.04414.98
5.3.200.0030.03614.98
5.3.190.0070.03214.98
5.3.180.0030.03714.98
5.3.170.0060.03514.98
5.3.160.0000.03814.98
5.3.150.0000.04214.98
5.3.140.0030.03714.98
5.3.130.0040.03514.98
5.3.120.0000.04114.98
5.3.110.0030.04114.98
5.3.100.0000.03714.98
5.3.90.0100.04114.98
5.3.80.0000.03714.98
5.3.70.0030.03714.98
5.3.60.0030.03614.98
5.3.50.0030.03314.98
5.3.40.0030.05814.98
5.3.30.0100.06514.98
5.3.20.0000.03614.98
5.3.10.0000.05414.98
5.3.00.0030.03314.98
5.2.170.0070.02714.98
5.2.160.0070.02614.98
5.2.150.0030.03414.98
5.2.140.0040.02814.98
5.2.130.0000.06214.98
5.2.120.0070.02614.98
5.2.110.0000.02914.98
5.2.100.0000.03314.98
5.2.90.0000.03014.98
5.2.80.0090.02214.98
5.2.70.0030.02814.98
5.2.60.0070.05814.98
5.2.50.0030.06714.98
5.2.40.0030.06214.98
5.2.30.0070.05914.98
5.2.20.0030.03614.98
5.2.10.0030.02614.98
5.2.00.0000.03414.98
5.1.60.0000.02914.98
5.1.50.0000.02814.98
5.1.40.0000.02714.98
5.1.30.0000.02814.98
5.1.20.0000.02814.98
5.1.10.0030.02614.98
5.1.00.0040.02514.98
5.0.50.0030.02114.98
5.0.40.0000.02214.98
5.0.30.0000.03214.98
5.0.20.0070.02714.98
5.0.10.0030.02014.98
5.0.00.0000.03214.98
4.4.90.0000.03714.98
4.4.80.0000.01614.98
4.4.70.0000.02114.98
4.4.60.0000.02614.98
4.4.50.0030.01914.98
4.4.40.0030.02114.98
4.4.30.0000.01614.98
4.4.20.0110.01114.98
4.4.10.0000.01714.98
4.4.00.0000.02814.98
4.3.110.0030.01314.98
4.3.100.0030.02714.98
4.3.90.0000.02614.98
4.3.80.0000.03814.98
4.3.70.0000.01614.98
4.3.60.0030.01314.98
4.3.50.0030.01614.98
4.3.40.0070.02014.98
4.3.30.0000.01714.98
4.3.20.0030.01414.98
4.3.10.0030.01414.98
4.3.00.0060.01314.98

preferences:
44.9 ms | 400 KiB | 5 Q