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();

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.0100.00716.50
8.3.50.0070.00716.27
8.3.40.0120.01218.97
8.3.30.0070.01118.81
8.3.20.0000.00720.29
8.3.10.0050.00221.64
8.3.00.0080.00023.67
8.2.180.0110.00416.50
8.2.170.0110.00722.96
8.2.160.0040.01120.35
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00020.92
8.2.120.0000.00726.35
8.2.110.0030.00619.41
8.2.100.0080.00417.93
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0060.00317.80
8.2.50.0040.00418.09
8.2.40.0070.00022.32
8.2.30.0000.00719.44
8.2.20.0000.00717.69
8.2.10.0000.00717.98
8.2.00.0000.00817.98
8.1.280.0030.01425.92
8.1.270.0080.00022.06
8.1.260.0050.00228.09
8.1.250.0080.00028.09
8.1.240.0040.00722.04
8.1.230.0080.00417.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00817.35
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0080.00418.50
8.1.160.0000.00720.59
8.1.150.0000.00718.70
8.1.140.0050.00319.45
8.1.130.0000.00717.56
8.1.120.0070.00017.31
8.1.110.0070.00017.38
8.1.100.0030.00517.33
8.1.90.0000.00717.30
8.1.80.0040.00417.33
8.1.70.0070.00017.22
8.1.60.0000.00817.44
8.1.50.0050.00317.49
8.1.40.0080.00017.49
8.1.30.0030.00617.65
8.1.20.0000.00917.45
8.1.10.0080.00017.44
8.1.00.0040.00417.37
8.0.300.0040.00418.78
8.0.290.0050.00216.63
8.0.280.0080.00018.39
8.0.270.0070.00017.18
8.0.260.0000.00718.28
8.0.250.0030.00316.88
8.0.240.0070.00016.95
8.0.230.0000.00716.93
8.0.220.0100.00016.83
8.0.210.0000.00716.87
8.0.200.0000.00716.95
8.0.190.0000.00816.87
8.0.180.0040.00416.90
8.0.170.0000.00816.88
8.0.160.0000.00716.91
8.0.150.0050.00316.80
8.0.140.0000.00716.77
8.0.130.0000.00513.35
8.0.120.0040.00416.71
8.0.110.0000.00716.86
8.0.100.0040.00416.88
8.0.90.0050.00316.88
8.0.80.0080.00816.84
8.0.70.0050.00216.85
8.0.60.0070.00016.77
8.0.50.0040.00416.78
8.0.30.0050.01116.94
8.0.20.0140.00917.40
8.0.10.0040.00416.91
8.0.00.0080.01016.70
7.4.330.0030.00316.79
7.4.320.0060.00016.38
7.4.300.0030.00316.52
7.4.290.0030.00616.42
7.4.280.0030.00616.43
7.4.270.0030.00316.33
7.4.260.0070.00016.29
7.4.250.0040.00416.41
7.4.240.0030.00316.54
7.4.230.0000.00716.32
7.4.220.0130.01316.56
7.4.210.0090.01016.51
7.4.200.0000.00816.34
7.4.160.0090.00616.53
7.4.150.0190.00617.40
7.4.140.0080.01517.86
7.4.130.0090.00916.47
7.4.120.0100.01016.44
7.4.110.0080.00816.61
7.4.100.0110.00616.31
7.4.90.0160.00016.37
7.4.80.0140.01019.39
7.4.70.0090.01516.28
7.4.60.0110.00516.48
7.4.50.0030.01316.32
7.4.40.0090.00916.25
7.4.30.0080.01116.47
7.4.00.0070.00715.18
7.3.330.0000.00513.21
7.3.320.0030.00313.27
7.3.310.0000.00716.41
7.3.300.0000.00716.38
7.3.290.0030.00316.37
7.3.280.0080.01316.33
7.3.270.0130.00517.40
7.3.260.0090.00916.60
7.3.250.0130.00516.28
7.3.240.0030.01316.41
7.3.230.0190.00616.39
7.3.210.0060.01016.21
7.3.200.0120.01319.39
7.3.190.0080.00816.50
7.3.180.0100.01016.22
7.3.170.0000.01616.52
7.3.160.0120.00316.34
7.2.330.0100.01316.42
7.2.320.0090.00916.59
7.2.310.0070.01116.27
7.2.300.0120.00916.64
7.2.290.0060.01016.74
7.2.60.0080.00816.84
7.2.00.0000.01319.37
7.1.200.0060.00615.31
7.1.100.0040.00717.90
7.1.70.0000.00817.18
7.1.60.0110.01519.40
7.1.50.0130.01016.77
7.1.00.0070.07322.32
7.0.200.0820.00614.75
7.0.60.0170.07721.87
7.0.50.0100.08017.85
7.0.40.0130.07020.13
7.0.30.0230.04720.33
7.0.20.0270.06020.21
7.0.10.0030.05320.22
7.0.00.0070.08720.29
5.6.210.0070.05320.68
5.6.200.0030.04718.19
5.6.190.0030.08720.55
5.6.180.0330.04720.45
5.6.170.0400.06720.46
5.6.160.0100.04720.57
5.6.150.0130.07018.15
5.6.140.0100.07318.19
5.6.130.0100.04318.21
5.6.120.0170.07021.14
5.6.110.0030.07021.12
5.6.100.0000.04321.05
5.6.90.0000.07320.97
5.6.80.0000.04320.54
5.5.350.0330.07320.41
5.5.340.0070.03717.92
5.5.330.0070.07720.59
5.5.320.0130.05320.23
5.5.310.0300.04020.29
5.5.300.0070.06717.95
5.5.290.0100.08018.08
5.5.280.0070.05320.89
5.5.270.0070.03720.88
5.5.260.0070.06720.87
5.5.250.0070.08020.69
5.5.240.0300.07020.16

preferences:
52.43 ms | 401 KiB | 5 Q