3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($id) { var_dump( $id ); } } class Bar extends Foo { public function __construct($id) { call_user_func_array(array('parent', __FUNCTION__), func_get_args()); call_user_func_array(array($this, 'parent::' . __FUNCTION__), func_get_args()); } } new Bar(1);

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.70.0080.00816.75
8.3.60.0120.00616.50
8.3.50.0090.00821.92
8.3.40.0070.00718.67
8.3.30.0090.00619.11
8.3.20.0070.00020.21
8.3.10.0040.00421.77
8.3.00.0080.00019.56
8.2.180.0180.00316.50
8.2.170.0140.00022.96
8.2.160.0070.00720.57
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.93
8.2.110.0110.00022.11
8.2.100.0040.00817.91
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0100.00017.38
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0070.00018.02
8.2.20.0030.00517.63
8.2.10.0080.00017.88
8.2.00.0000.00717.68
8.1.280.0090.00625.92
8.1.270.0040.00422.19
8.1.260.0050.00326.35
8.1.250.0100.00028.09
8.1.240.0050.00523.86
8.1.230.0070.00419.15
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0060.00317.50
8.1.180.0000.00818.10
8.1.170.0030.00518.39
8.1.160.0070.00022.07
8.1.150.0030.00618.70
8.1.140.0000.00817.30
8.1.130.0040.00417.72
8.1.120.0000.00717.42
8.1.110.0050.00317.35
8.1.100.0070.00017.25
8.1.90.0040.00417.38
8.1.80.0070.00017.40
8.1.70.0070.00017.30
8.1.60.0090.00017.56
8.1.50.0040.00417.36
8.1.40.0080.00017.45
8.1.30.0030.00517.63
8.1.20.0040.00417.56
8.1.10.0040.00417.41
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0030.00518.46
8.0.270.0030.00718.57
8.0.260.0000.00617.17
8.0.250.0000.00716.85
8.0.240.0040.00416.85
8.0.230.0030.00316.95
8.0.220.0070.00016.78
8.0.210.0040.00416.76
8.0.200.0030.00316.94
8.0.190.0040.01216.99
8.0.180.0040.00416.91
8.0.170.0000.00816.77
8.0.160.0000.00716.92
8.0.150.0060.00316.76
8.0.140.0050.00216.86
8.0.130.0050.00013.23
8.0.120.0040.00416.77
8.0.110.0000.00816.79
8.0.100.0040.00416.89
8.0.90.0000.00816.72
8.0.80.0070.00716.92
8.0.70.0000.00817.00
8.0.60.0000.00716.88
8.0.50.0000.00716.89
8.0.30.0100.00916.94
8.0.20.0130.00517.40
8.0.10.0040.00416.82
8.0.00.0120.00616.71
7.4.330.0050.00015.22
7.4.320.0000.00616.55
7.4.300.0030.00616.52
7.4.290.0030.00316.52
7.4.280.0040.00416.51
7.4.270.0040.00416.52
7.4.260.0020.00516.46
7.4.250.0000.00716.57
7.4.240.0040.00316.47
7.4.230.0070.00016.61
7.4.220.0070.01016.69
7.4.210.0070.01416.68
7.4.200.0030.00316.70
7.4.160.0120.00316.39
7.4.150.0070.01117.40
7.4.140.0050.01417.86
7.4.130.0110.00816.55
7.4.120.0100.00816.55
7.4.110.0040.01616.54
7.4.100.0120.00616.50
7.4.90.0030.01316.51
7.4.80.0070.01119.39
7.4.70.0040.01216.57
7.4.60.0060.01116.41
7.4.50.0030.00316.35
7.4.40.0100.00716.62
7.4.30.0090.00916.41
7.4.00.0110.00414.69
7.3.330.0000.00513.30
7.3.320.0000.00513.32
7.3.310.0070.00016.15
7.3.300.0050.00216.25
7.3.290.0090.00416.24
7.3.280.0070.01016.29
7.3.270.0090.00617.40
7.3.260.0100.01016.33
7.3.250.0040.01516.35
7.3.240.0070.01416.45
7.3.230.0040.01216.48
7.3.210.0070.01116.35
7.3.200.0070.01419.39
7.3.190.0060.01016.54
7.3.180.0150.00316.28
7.3.170.0130.00316.46
7.3.160.0120.00916.56
7.2.330.0100.01016.67
7.2.320.0100.01016.77
7.2.310.0100.01016.21
7.2.300.0090.01216.71
7.2.290.0130.00716.62
7.2.60.0060.00916.71
7.2.00.0100.00719.31
7.1.200.0080.00415.62
7.1.100.0090.00917.67
7.1.70.0040.00417.24
7.1.60.0040.00717.25
7.1.50.0130.00316.69
7.1.40.0110.00016.41
7.1.30.0000.01116.64
7.1.20.0040.00816.70
7.1.10.0000.00716.36
7.1.00.0000.00916.72
7.0.200.0040.00416.41
7.0.190.0070.00716.80
7.0.180.0040.00416.31
7.0.170.0040.00416.25
7.0.160.0000.00716.26
7.0.150.0000.00816.26
7.0.140.0040.00416.55
7.0.130.0040.00416.59
7.0.120.0030.00616.70
7.0.110.0070.00316.45
7.0.100.0000.01016.38
7.0.90.0040.00416.44
7.0.80.0000.00716.26
7.0.70.0000.00816.45
7.0.60.0000.00816.27
7.0.50.0060.00616.38
7.0.40.0000.00714.53
7.0.30.0000.00714.48
7.0.20.0000.00714.58
7.0.10.0040.00414.51
7.0.00.0000.00714.43
5.6.300.0030.04320.79
5.6.290.0040.04220.84
5.6.280.0060.03820.91
5.6.270.0070.04021.09
5.6.260.0100.03821.07
5.6.250.0100.03320.82
5.6.240.0000.04421.07
5.6.230.0030.04520.87
5.6.220.0130.03520.97
5.6.210.0130.03020.97
5.6.200.0030.04520.87
5.6.190.0000.05020.86
5.6.180.0000.04320.83
5.6.170.0130.03620.82
5.6.160.0030.04020.84
5.6.150.0030.04220.93
5.6.140.0030.04421.03
5.6.130.0000.04820.86
5.6.120.0030.04220.92
5.6.110.0100.04720.82
5.6.100.0030.04020.73
5.6.90.0000.04521.03
5.6.80.0030.03820.35
5.6.70.0030.04820.35
5.6.60.0000.04420.24
5.6.50.0100.03420.41
5.6.40.0000.04320.36
5.6.30.0100.04820.14
5.6.20.0000.04520.19
5.6.10.0030.03920.29
5.6.00.0030.03920.07
5.5.380.0100.03317.63
5.5.370.0000.04117.65
5.5.360.0030.05417.66
5.5.350.0030.04217.52
5.5.340.0030.04318.09
5.5.330.0000.04718.06
5.5.320.0060.04117.84
5.5.310.0100.03718.04
5.5.300.0000.05018.09
5.5.290.0100.03518.13
5.5.280.0070.04018.09
5.5.270.0000.04518.09
5.5.260.0040.04617.87
5.5.250.0000.04617.87
5.5.240.0070.03417.39
5.5.230.0000.04717.23
5.5.220.0090.03517.55
5.5.210.0030.04317.56
5.5.200.0030.03917.45
5.5.190.0030.04317.19
5.5.180.0000.04517.05
5.5.160.0070.04017.10
5.5.150.0000.04217.53
5.5.140.0030.03917.21
5.5.130.0030.03817.21
5.5.120.0070.03317.48
5.5.110.0030.04117.18
5.5.100.0070.03317.09
5.5.90.0060.04217.25
5.5.80.0030.03516.99
5.5.70.0030.04117.36
5.5.60.0070.03817.08
5.5.50.0030.03817.30
5.5.40.0030.03617.42
5.5.30.0060.03917.26
5.5.20.0000.04117.27
5.5.10.0000.04316.95
5.5.00.0000.04016.97
5.4.450.0160.04719.50
5.4.440.0070.03719.43
5.4.430.0060.04019.18
5.4.420.0060.04119.27
5.4.410.0100.03619.32
5.4.400.0070.04319.13
5.4.390.0060.03818.95
5.4.380.0070.03618.88
5.4.370.0000.04718.89
5.4.360.0160.04518.86
5.4.350.0410.02719.07
5.4.340.0030.04319.02
5.4.320.0070.04118.88
5.4.310.0040.04219.17
5.4.300.0070.04318.95
5.4.290.0000.04319.04
5.4.280.0060.03919.10
5.4.270.0070.03218.94
5.4.260.0030.03819.12
5.4.250.0000.05318.95
5.4.240.0070.03619.11
5.4.230.0000.04619.18
5.4.220.0040.04019.12
5.4.210.0030.04418.93
5.4.200.0070.04018.94
5.4.190.0070.04019.06
5.4.180.0000.04418.93
5.4.170.0130.03619.04
5.4.160.0000.04819.03
5.4.150.0000.04619.01
5.4.140.0060.03916.75
5.4.130.0160.03216.59
5.4.120.0130.03916.72
5.4.110.0060.03416.64
5.4.100.0040.03616.76
5.4.90.0030.03816.81
5.4.80.0100.03016.77
5.4.70.0000.04116.67
5.4.60.0000.04216.68
5.4.50.0060.03216.68
5.4.40.0030.03716.62
5.4.30.0130.02916.68
5.4.20.0070.03616.68
5.4.10.0000.04116.52
5.4.00.0140.03815.91
5.3.290.0060.04314.97
5.3.280.0030.03914.88
5.3.270.0070.03614.90
5.3.260.0000.04514.61
5.3.250.0030.04114.85
5.3.240.0060.03414.79
5.3.230.0040.03714.84
5.3.220.0030.03814.86
5.3.210.0040.04014.86
5.3.200.0130.02914.84
5.3.190.0000.04014.75
5.3.180.0000.04014.57
5.3.170.0030.03614.80
5.3.160.0070.05014.83
5.3.150.0040.05014.77
5.3.140.0070.03514.56
5.3.130.0000.07614.84
5.3.120.0060.05014.79
5.3.110.0140.03514.82
5.3.100.0070.03514.09
5.3.90.0060.04514.28
5.3.80.0130.02914.07
5.3.70.0030.04014.07
5.3.60.0130.03014.18
5.3.50.0030.04614.17
5.3.40.0060.04314.19
5.3.30.0030.07714.21
5.3.20.0160.02614.07
5.3.10.0060.04514.07
5.3.00.0100.03514.07
5.2.170.0030.03214.07
5.2.160.0070.02714.07
5.2.150.0120.02214.07
5.2.140.0060.03414.07
5.2.130.0110.04014.07
5.2.120.0060.02514.07
5.2.110.0060.02914.07
5.2.100.0040.05314.07
5.2.90.0030.03414.07
5.2.80.0150.02214.07
5.2.70.0060.03214.07
5.2.60.0000.03414.07
5.2.50.0070.03014.07
5.2.40.0030.03214.07
5.2.30.0000.03514.07
5.2.20.0060.02614.07
5.2.10.0090.02514.07
5.2.00.0070.02714.07
5.1.60.0030.02614.07
5.1.50.0000.03314.07
5.1.40.0000.02714.07
5.1.30.0040.02914.07
5.1.20.0040.02514.07
5.1.10.0000.03814.07
5.1.00.0000.03014.07
5.0.50.0150.01514.07
5.0.40.0000.02414.07
5.0.30.0000.03714.07
5.0.20.0000.02414.07
5.0.10.0090.01614.07
5.0.00.0030.03114.07
4.4.90.0000.02114.07
4.4.80.0000.01714.07
4.4.70.0040.01414.07
4.4.60.0000.01714.07
4.4.50.0070.01114.07
4.4.40.0000.02814.07
4.4.30.0000.01714.07
4.4.20.0050.01414.07
4.4.10.0030.02214.07
4.4.00.0030.02414.07
4.3.110.0000.02214.07
4.3.100.0000.01814.07
4.3.90.0000.01814.07
4.3.80.0070.03314.07
4.3.70.0080.01114.07
4.3.60.0060.01114.07
4.3.50.0030.01714.07
4.3.40.0060.02114.07
4.3.30.0030.01514.07
4.3.20.0000.01714.07
4.3.10.0000.01914.07
4.3.00.0000.01814.07

preferences:
54.31 ms | 401 KiB | 5 Q