3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cat { private static $count; public function __construct(){ self::$count++; } public function destruct(){ echo "I was destricted"; } } new Cat(); new Cat();

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.0210.00016.75
8.3.50.0260.00921.11
8.3.40.0070.00718.84
8.3.30.0110.01118.57
8.3.20.0100.00720.19
8.3.10.0070.00021.63
8.3.00.0100.00017.66
8.2.180.0120.00616.50
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00317.50
8.2.110.0190.00322.26
8.2.100.0080.00417.63
8.2.90.0030.00918.93
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0070.00019.27
8.2.30.0040.00419.48
8.2.20.0000.00717.68
8.2.10.0000.00718.05
8.2.00.0030.00318.07
8.1.280.0080.00825.92
8.1.270.0060.00322.04
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0040.00717.42
8.1.220.0090.00017.74
8.1.210.0030.00718.77
8.1.200.0030.00717.35
8.1.190.0080.00017.22
8.1.180.0090.00018.10
8.1.170.0080.00018.57
8.1.160.0000.00821.81
8.1.150.0000.00718.78
8.1.140.0060.00317.37
8.1.130.0080.00017.56
8.1.120.0000.00717.46
8.1.110.0030.00617.27
8.1.100.0000.00717.27
8.1.90.0030.00317.31
8.1.80.0060.00317.39
8.1.70.0030.00317.28
8.1.60.0030.00517.58
8.1.50.0090.00017.42
8.1.40.0040.00417.38
8.1.30.0050.00317.66
8.1.20.0040.00417.71
8.1.10.0000.00717.57
8.1.00.0060.00317.52
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0000.00718.43
8.0.270.0030.00517.18
8.0.260.0000.00617.05
8.0.250.0040.00416.78
8.0.240.0050.00316.78
8.0.230.0080.00416.79
8.0.220.0060.00016.68
8.0.210.0030.00316.82
8.0.200.0000.00716.92
8.0.190.0040.00416.86
8.0.180.0040.00316.77
8.0.170.0030.00516.75
8.0.160.0070.00016.69
8.0.150.0050.00316.77
8.0.140.0000.00716.73
8.0.130.0000.00613.27
8.0.120.0040.00416.82
8.0.110.0000.00716.75
8.0.100.0040.00416.78
8.0.90.0030.00516.79
8.0.80.0110.00416.85
8.0.70.0000.00716.84
8.0.60.0000.00816.88
8.0.50.0030.00516.71
8.0.30.0100.00616.90
8.0.20.0070.01217.40
8.0.10.0000.00716.97
8.0.00.0070.01016.82
7.4.330.0020.00215.08
7.4.320.0000.00616.53
7.4.300.0060.00016.63
7.4.290.0000.00716.40
7.4.280.0000.00816.58
7.4.270.0060.00016.42
7.4.260.0000.00716.42
7.4.250.0000.00716.36
7.4.240.0020.00516.55
7.4.230.0000.00716.59
7.4.220.0090.01516.43
7.4.210.0120.00616.62
7.4.200.0000.00716.40
7.4.160.0110.00516.54
7.4.150.0140.01117.40
7.4.140.0100.01017.86
7.4.130.0120.00716.49
7.4.120.0070.01016.43
7.4.110.0150.00616.46
7.4.100.0140.00316.27
7.4.90.0040.01216.54
7.4.80.0110.01019.39
7.4.70.0040.01416.46
7.4.60.0130.00316.51
7.4.50.0000.00816.50
7.4.40.0140.01116.21
7.4.30.0030.01916.61
7.4.00.0040.00414.81
7.3.330.0020.00213.17
7.3.320.0060.00013.28
7.3.310.0030.00316.35
7.3.300.0070.00016.31
7.3.290.0070.00016.26
7.3.280.0080.01116.31
7.3.270.0130.00417.40
7.3.260.0060.01216.53
7.3.250.0120.00716.22
7.3.240.0140.00316.36
7.3.230.0070.01016.39
7.3.210.0120.00616.31
7.3.200.0030.01316.26
7.3.190.0120.00316.31
7.3.180.0120.00916.33
7.3.170.0080.00816.47
7.3.160.0090.01316.45
7.2.330.0070.01016.43
7.2.320.0130.00316.62
7.2.310.0140.00316.62
7.2.300.0100.01016.39
7.2.290.0100.00716.29
7.2.60.0070.00716.64
7.1.200.0080.00415.80
7.1.70.0000.00816.89
7.1.60.0070.01419.27
7.1.50.0060.00916.87
7.1.00.0000.08022.43
7.0.200.0620.00314.79
7.0.60.0070.07720.06
7.0.50.0100.07317.87
7.0.40.0070.08320.25
7.0.30.0270.04320.25
7.0.20.0030.04020.09
7.0.10.0100.08020.19
7.0.00.0130.07020.31
5.6.280.0030.04721.02
5.6.210.0070.07720.57
5.6.200.0000.05018.16
5.6.190.0000.05020.49
5.6.180.0200.04020.46
5.6.170.0230.08020.54
5.6.160.0070.07720.46
5.6.150.0030.08318.23
5.6.140.0100.08018.18
5.6.130.0100.03718.18
5.6.120.0030.07721.02
5.6.110.0130.07321.14
5.6.100.0070.08020.98
5.6.90.0170.07320.95
5.6.80.0070.07320.38
5.6.70.3070.04320.38
5.5.350.0370.07020.50
5.5.340.0100.08017.95
5.5.330.0070.09020.40
5.5.320.3400.04020.31
5.5.310.0300.07720.41
5.5.300.0070.03717.96
5.5.290.0030.08317.97
5.5.280.0070.04020.73
5.5.270.0030.07720.76
5.5.260.0070.05720.89
5.5.250.0130.05720.64
5.5.240.3630.03320.06
5.4.450.0130.06719.58
5.4.440.0230.04719.70
5.4.430.0130.05319.46
5.4.420.0170.05719.61
5.4.410.0270.04719.18
5.4.400.0070.06318.87
5.4.390.0100.06319.11
5.4.380.0270.07019.29
5.4.370.0170.06019.05
5.4.360.0230.05019.39
5.4.350.0230.05719.22
5.4.340.0170.06319.14
5.4.320.0270.04719.24
5.4.310.0230.06019.22
5.4.300.0230.07718.85
5.4.290.0270.07019.14
5.4.280.0070.07019.21
5.4.270.0170.08019.28
5.4.260.0270.07318.86
5.4.250.0230.04718.97
5.4.240.0170.05319.10
5.4.230.0230.07319.21
5.4.220.0300.07019.28
5.4.210.0300.04319.13
5.4.200.0330.05018.97
5.4.190.0170.05319.13
5.4.180.0100.06019.24
5.4.170.0070.06719.13
5.4.160.0300.04719.25
5.4.150.0230.05319.03
5.4.140.0270.04716.34
5.4.130.0130.05316.56
5.4.120.0230.04716.52
5.4.110.0300.05716.20
5.4.100.0230.04716.27
5.4.90.0270.04016.51
5.4.80.0330.03316.39
5.4.70.0230.04716.52
5.4.60.0270.04016.53
5.4.50.0000.03316.43
5.4.40.0030.03716.59
5.4.30.0030.05716.54
5.4.20.0300.06716.37

preferences:
51.56 ms | 401 KiB | 5 Q