3v4l.org

run code in 300+ PHP versions simultaneously
<?php class father { protected $name; function __construct($name){ $this -> name = $name; } function __destruct(){ echo "<p>".$this ->name."what the ca </p>"; } } $father = new father(father); ?>

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.00716.63
8.3.50.0090.00618.17
8.3.40.0110.00418.83
8.3.30.0110.00718.44
8.3.20.0000.00720.07
8.3.10.0070.00021.97
8.3.00.0040.00423.48
8.2.180.0090.00616.59
8.2.170.0120.00622.96
8.2.160.0100.00320.43
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00221.04
8.2.120.0070.00026.35
8.2.110.0030.00619.45
8.2.100.0090.00317.80
8.2.90.0000.00818.89
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0030.00517.77
8.2.50.0040.00418.09
8.2.40.0030.00622.32
8.2.30.0000.00719.30
8.2.20.0040.00417.78
8.2.10.0000.00718.05
8.2.00.0000.00718.11
8.1.280.0150.00325.92
8.1.270.0110.01122.09
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0090.00022.16
8.1.230.0040.00717.82
8.1.220.0000.00917.79
8.1.210.0030.00618.77
8.1.200.0060.00617.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00518.37
8.1.160.0070.00020.64
8.1.150.0070.00020.52
8.1.140.0050.00319.43
8.1.130.0030.00317.62
8.1.120.0040.00417.28
8.1.110.0040.00417.41
8.1.100.0000.00717.41
8.1.90.0040.00417.39
8.1.80.0030.00417.46
8.1.70.0040.00417.37
8.1.60.0040.00417.52
8.1.50.0000.00817.52
8.1.40.0050.00217.34
8.1.30.0080.00017.42
8.1.20.0070.00017.58
8.1.10.0030.00517.53
8.1.00.0000.00917.32
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0070.00018.31
8.0.270.0030.00317.21
8.0.260.0060.00017.26
8.0.250.0030.00317.05
8.0.240.0070.00017.04
8.0.230.0030.00517.09
8.0.220.0060.00316.95
8.0.210.0000.00716.94
8.0.200.0030.00317.03
8.0.190.0040.00416.91
8.0.180.0000.00716.97
8.0.170.0040.00416.96
8.0.160.0070.00016.98
8.0.150.0080.00016.96
8.0.140.0000.00716.86
8.0.130.0030.00313.35
8.0.120.0000.00816.82
8.0.110.0070.00016.86
8.0.100.0030.00516.96
8.0.90.0050.00217.00
8.0.80.0090.00616.93
8.0.70.0000.00716.79
8.0.60.0000.00716.95
8.0.50.0000.00716.98
8.0.30.0090.00617.06
8.0.20.0090.01217.40
8.0.10.0030.00517.07
8.0.00.0100.00916.72
7.4.330.0000.00516.72
7.4.320.0000.00716.57
7.4.300.0000.00616.59
7.4.290.0000.00816.59
7.4.280.0070.00016.63
7.4.270.0030.00316.51
7.4.260.0070.00016.53
7.4.250.0070.00016.47
7.4.240.0000.00716.64
7.4.230.0030.00316.63
7.4.220.0100.01416.47
7.4.210.0090.00716.54
7.4.200.0050.00216.49
7.4.160.0100.00716.51
7.4.150.0070.01017.40
7.4.140.0120.00817.86
7.4.130.0080.01116.60
7.4.120.0130.00716.68
7.4.110.0070.01016.60
7.4.100.0040.01416.48
7.4.90.0140.00916.50
7.4.80.0100.00719.39
7.4.70.0130.00316.40
7.4.60.0100.00616.40
7.4.50.0030.01316.54
7.4.40.0110.00616.40
7.4.30.0070.01416.44
7.4.00.0020.01514.85
7.3.330.0000.00613.38
7.3.320.0060.00013.21
7.3.310.0040.00416.25
7.3.300.0000.00716.19
7.3.290.0070.00016.24
7.3.280.0070.00916.38
7.3.270.0090.00917.40
7.3.260.0090.00816.34
7.3.250.0090.00716.48
7.3.240.0110.00616.51
7.3.230.0120.00616.40
7.3.210.0100.00716.52
7.3.200.0090.01219.39
7.3.190.0140.00616.48
7.3.180.0090.00916.49
7.3.170.0110.00616.48
7.3.160.0120.00316.38
7.3.120.0120.00614.85
7.3.110.0000.01614.78
7.3.100.0030.01414.57
7.3.90.0060.00914.69
7.3.80.0060.00614.75
7.3.70.0030.01314.90
7.3.60.0070.01014.44
7.3.50.0000.01514.73
7.3.40.0040.01114.73
7.3.30.0050.00814.50
7.3.20.0030.00916.42
7.3.10.0000.01116.64
7.3.00.0090.00616.64
7.2.330.0130.00616.47
7.2.320.0100.00716.76
7.2.310.0030.01316.62
7.2.300.0080.01316.49
7.2.290.0030.01216.50
7.2.250.0110.00415.28
7.2.240.0060.00915.06
7.2.230.0150.00315.00
7.2.220.0000.00914.89
7.2.210.0060.01014.77
7.2.200.0120.00314.91
7.2.190.0000.01214.94
7.2.180.0080.01215.01
7.2.170.0180.00015.18
7.2.60.0040.01116.82
7.2.00.0070.00719.55
7.1.330.0040.01115.78
7.1.320.0060.00915.70
7.1.310.0030.01015.66
7.1.300.0090.00615.50
7.1.290.0090.00615.32
7.1.280.0000.01315.79
7.1.270.0070.00715.64
7.1.260.0070.01015.77
7.1.200.0090.00315.49
7.1.100.0030.01418.18
7.1.70.0000.00817.28
7.1.60.0160.00919.40
7.1.50.0110.01116.96
7.1.00.0030.07722.33
7.0.200.0990.00314.53
7.0.60.0130.09021.73
7.0.50.0070.07717.72
7.0.40.0130.04020.24
7.0.30.0130.04320.35
7.0.20.0330.08020.24
7.0.10.0070.08720.10
7.0.00.0000.06020.18
5.6.280.0070.05721.00
5.6.210.0030.06320.57
5.6.200.0070.06318.12
5.6.190.0000.09020.49
5.6.180.0370.07020.64
5.6.170.0230.05020.51
5.6.160.0070.08020.54
5.6.150.0030.05718.25
5.6.140.0000.09018.24
5.6.130.0000.04318.16
5.6.120.0030.05321.02
5.6.110.0100.08021.02
5.6.100.0130.03020.98
5.6.90.0070.07321.01
5.6.80.0030.04020.49
5.5.350.0270.07720.30
5.5.340.0100.03318.00
5.5.330.0070.08720.23
5.5.320.0100.06320.25
5.5.310.0200.04020.27
5.5.300.0030.07718.05
5.5.290.0030.08017.96
5.5.280.0000.04720.89
5.5.270.0030.04020.80
5.5.260.0030.05720.95
5.5.250.0170.07720.59
5.5.240.0230.06720.05

preferences:
41.86 ms | 401 KiB | 5 Q