3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __construct($a, $b, $c){ if(isset($this)){ $this->baz = [$a, $b, $c]; }else{ return new self($a, $b, $c); } } } var_dump(A::__construct());

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.5.30.0150.00317.42
8.5.20.0080.00820.24
8.5.10.0040.00420.26
8.5.00.0130.01220.07
8.4.180.0110.00921.95
8.4.170.0150.00720.50
8.4.160.0130.00823.83
8.4.150.0070.00716.96
8.4.140.0130.00917.65
8.4.130.0110.00818.72
8.4.120.0060.00324.21
8.4.110.0060.00318.76
8.4.100.0080.01119.00
8.4.90.0140.00620.81
8.4.80.0030.00618.62
8.4.70.0100.01219.36
8.4.60.0110.00918.04
8.4.50.0100.00918.82
8.4.40.0160.00318.66
8.4.30.0200.00017.94
8.4.20.0170.00317.87
8.4.10.0030.00617.89
8.3.300.0130.00720.88
8.3.290.0130.00820.63
8.3.280.0110.00918.40
8.3.270.0140.00616.49
8.3.260.0120.00716.56
8.3.250.0140.00518.90
8.3.240.0110.00917.04
8.3.230.0060.00216.89
8.3.220.0070.00818.85
8.3.210.0140.00416.59
8.3.200.0090.01116.80
8.3.190.0120.00619.00
8.3.180.0050.00417.18
8.3.170.0150.00418.73
8.3.160.0130.00620.15
8.3.150.0070.01117.13
8.3.140.0030.00518.78
8.3.130.0000.00818.34
8.3.120.0060.00318.80
8.3.110.0080.00020.94
8.3.100.0100.00024.06
8.3.90.0030.00626.77
8.3.80.0030.00617.97
8.3.70.0070.00718.43
8.3.60.0120.00616.75
8.3.50.0130.01021.93
8.3.40.0150.00318.64
8.3.30.0140.00018.67
8.3.20.0040.00420.29
8.3.10.0080.00023.63
8.3.00.0050.00319.78
8.2.300.0120.00922.23
8.2.290.0120.00620.13
8.2.280.0100.00616.62
8.2.270.0140.00416.95
8.2.260.0060.00316.54
8.2.250.0150.00318.25
8.2.240.0130.00616.82
8.2.230.0000.01022.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00616.50
8.2.190.0110.00718.50
8.2.180.0110.00718.29
8.2.170.0120.00322.96
8.2.160.0080.00620.22
8.2.150.0080.00024.18
8.2.140.0070.00724.66
8.2.130.0100.00021.04
8.2.120.0090.00626.35
8.2.110.0040.00720.95
8.2.100.0040.00719.40
8.2.90.0030.00619.14
8.2.80.0050.00220.29
8.2.70.0060.00317.63
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0080.00021.08
8.2.30.0030.00320.67
8.2.20.0000.00817.75
8.2.10.0030.00617.89
8.2.00.0000.00717.86
8.1.340.0100.00923.48
8.1.330.0080.00921.86
8.1.320.0100.00416.12
8.1.310.0060.00918.49
8.1.300.0080.00017.72
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.01520.32
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00422.18
8.1.230.0070.00420.97
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00717.52
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0050.00320.58
8.1.150.0000.00718.75
8.1.140.0000.00819.44
8.1.130.0030.00317.51
8.1.120.0030.00417.22
8.1.110.0000.00817.37
8.1.100.0040.00417.21
8.1.90.0060.00317.22
8.1.80.0030.00617.37
8.1.70.0000.00717.34
8.1.60.0050.00217.46
8.1.50.0050.00317.32
8.1.40.0050.00317.39
8.1.30.0000.00817.56
8.1.20.0050.00317.44
8.1.10.0020.00517.40
8.1.00.0000.00817.40
8.0.300.0040.00420.14
8.0.290.0050.00216.75
8.0.280.0000.00718.30
8.0.270.0000.00717.19
8.0.260.0030.00317.19
8.0.250.0000.00616.91
8.0.240.0030.00316.88
8.0.230.0000.00716.85
8.0.220.0030.00316.86
8.0.210.0000.00716.90
8.0.200.0060.00016.98
8.0.190.0000.00716.82
8.0.180.0030.00616.80
8.0.170.0000.00816.78
8.0.160.0030.00316.84
8.0.150.0030.00316.76
8.0.140.0000.00716.75
8.0.130.0050.00013.39
8.0.120.0040.00416.92
8.0.110.0000.00716.88
8.0.100.0030.00516.75
8.0.90.0000.00716.85
8.0.80.0120.00316.95
8.0.70.0040.00416.71
8.0.60.0080.00016.71
8.0.50.0070.00016.95
8.0.30.0090.01117.03
8.0.20.0100.00917.40
8.0.10.0040.00416.94
8.0.00.0110.00916.81
7.4.330.0060.00016.89
7.4.320.0000.00716.27
7.4.300.0070.00016.43
7.4.290.0000.00716.54
7.4.280.0040.00516.33
7.4.270.0070.00016.51
7.4.260.0030.00316.53
7.4.250.0070.00016.31
7.4.240.0040.00316.53
7.4.230.0000.00716.54
7.4.220.0110.01516.61
7.4.210.0070.00716.48
7.4.200.0000.00716.65
7.4.160.0060.00916.27
7.4.150.0110.00617.40
7.4.140.0050.01617.86
7.4.130.0040.01416.45
7.4.120.0110.00616.40
7.4.110.0120.00616.42
7.4.100.0070.01616.32
7.4.90.0130.00716.42
7.4.80.0070.01019.39
7.4.70.0030.01416.53
7.4.60.0040.01216.48
7.4.50.0090.00616.32
7.4.40.0070.01016.50
7.4.30.0070.01016.44
7.4.00.0140.00014.84
7.3.330.0050.00013.22
7.3.320.0050.00013.32
7.3.310.0000.00716.41
7.3.300.0050.00216.24
7.3.290.0110.00516.33
7.3.280.0050.01216.38
7.3.270.0180.00417.40
7.3.260.0100.00716.29
7.3.250.0080.01316.47
7.3.240.0110.00616.49
7.3.230.0160.00616.48
7.3.210.0030.01416.31
7.3.200.0100.01216.41
7.3.190.0090.00916.60
7.3.180.0110.00616.34
7.3.170.0130.00716.43
7.3.160.0000.01716.35
7.2.330.0070.01016.60
7.2.320.0190.00016.64
7.2.310.0130.00316.49
7.2.300.0030.01616.58
7.2.290.0070.01316.55
7.2.60.0100.00716.73
7.1.200.0070.00715.48
7.1.100.0060.00317.94
7.1.70.0040.00416.94
7.1.60.0070.01819.13
7.1.50.0030.01016.95
7.1.00.0030.07722.58
7.0.200.0040.00416.66
7.0.60.0130.08019.81
7.0.50.0030.08717.88
7.0.40.0030.04720.02
7.0.30.0270.08320.10
7.0.20.0230.08720.33
7.0.10.0100.06720.23
7.0.00.0070.05720.32
5.6.280.0000.03320.79
5.6.210.0170.06720.54
5.6.200.0030.04018.20
5.6.190.0130.07720.39
5.6.180.0100.08720.64
5.6.170.0270.07320.46
5.6.160.0030.04320.54
5.6.150.0030.04018.25
5.6.140.0070.08318.10
5.6.130.0130.08018.28
5.6.120.0100.07720.98
5.6.110.0130.03321.11
5.6.100.0170.07721.01
5.6.90.0170.07321.12
5.6.80.0130.07720.40
5.5.350.3170.04320.48
5.5.340.0070.07718.07
5.5.330.0000.04720.27
5.5.320.0300.06020.34
5.5.310.0130.04320.34
5.5.300.0000.04317.95
5.5.290.0130.07317.96
5.5.280.0000.04320.88
5.5.270.0030.08720.98
5.5.260.0130.08020.76
5.5.250.0100.07020.69
5.5.240.0070.07020.12

preferences:
46.24 ms | 1520 KiB | 5 Q