3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cat { private $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.0100.01016.75
8.3.50.0100.01021.30
8.3.40.0040.01118.97
8.3.30.0110.00718.70
8.3.20.0060.00820.21
8.3.10.0040.00421.77
8.3.00.0030.00718.16
8.2.180.0110.01116.63
8.2.170.0060.00922.96
8.2.160.0040.01120.57
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00617.75
8.2.110.0000.00922.01
8.2.100.0090.00317.88
8.2.90.0080.00319.17
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00719.46
8.2.30.0000.00719.34
8.2.20.0050.00217.79
8.2.10.0000.00718.11
8.2.00.0000.00718.06
8.1.280.0040.01125.92
8.1.270.0000.00822.16
8.1.260.0050.00326.35
8.1.250.0020.00528.09
8.1.240.0060.00323.92
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.58
8.1.160.0040.00421.86
8.1.150.0070.00018.74
8.1.140.0040.00417.41
8.1.130.0040.00417.64
8.1.120.0000.00717.35
8.1.110.0030.00617.28
8.1.100.0070.00017.39
8.1.90.0000.00717.46
8.1.80.0050.00317.43
8.1.70.0000.00717.44
8.1.60.0050.00317.61
8.1.50.0040.00417.53
8.1.40.0000.00817.53
8.1.30.0040.00417.63
8.1.20.0050.00217.62
8.1.10.0000.00717.54
8.1.00.0030.00617.49
8.0.300.0080.00018.77
8.0.290.0050.00316.63
8.0.280.0030.00318.37
8.0.270.0030.00317.21
8.0.260.0060.00017.07
8.0.250.0000.00816.92
8.0.240.0000.00817.00
8.0.230.0050.00316.98
8.0.220.0000.00716.88
8.0.210.0030.00316.95
8.0.200.0060.00016.88
8.0.190.0000.00816.84
8.0.180.0040.00416.87
8.0.170.0040.00416.80
8.0.160.0030.00316.91
8.0.150.0070.00016.91
8.0.140.0040.00316.77
8.0.130.0000.00713.30
8.0.120.0080.00016.85
8.0.110.0000.00716.87
8.0.100.0000.00716.75
8.0.90.0040.00416.91
8.0.80.0130.00316.94
8.0.70.0020.00516.79
8.0.60.0040.00416.71
8.0.50.0060.00316.88
8.0.30.0120.00617.15
8.0.20.0100.00917.40
8.0.10.0070.00017.00
8.0.00.0110.00716.69
7.4.330.0020.00215.08
7.4.320.0000.00616.46
7.4.300.0000.00616.60
7.4.290.0030.00316.60
7.4.280.0040.00416.46
7.4.270.0060.00016.51
7.4.260.0030.00316.40
7.4.250.0030.00316.59
7.4.240.0030.00316.61
7.4.230.0080.00016.60
7.4.220.0090.01716.61
7.4.210.0070.00916.50
7.4.200.0040.00416.50
7.4.160.0070.01016.40
7.4.150.0110.00717.40
7.4.140.0150.00517.86
7.4.130.0030.01316.57
7.4.120.0080.00816.64
7.4.110.0100.00716.60
7.4.100.0120.00616.74
7.4.90.0030.01316.48
7.4.80.0030.01919.39
7.4.70.0040.01416.55
7.4.60.0070.01016.59
7.4.50.0000.00716.57
7.4.40.0110.01016.55
7.4.30.0060.01616.53
7.4.00.0060.00914.86
7.3.330.0030.00313.43
7.3.320.0000.00513.38
7.3.310.0000.00716.37
7.3.300.0000.00716.17
7.3.290.0000.00716.38
7.3.280.0110.00916.34
7.3.270.0050.01117.40
7.3.260.0140.01116.59
7.3.250.0070.01016.37
7.3.240.0070.01016.63
7.3.230.0060.01016.52
7.3.210.0070.01716.51
7.3.200.0110.00916.46
7.3.190.0000.02016.36
7.3.180.0040.01116.31
7.3.170.0110.01116.31
7.3.160.0090.00916.53
7.2.330.0070.01116.64
7.2.320.0120.00916.37
7.2.310.0110.00516.55
7.2.300.0030.01216.61
7.2.290.0040.01216.41
7.2.110.0060.00616.61
7.2.100.0040.00716.55
7.2.90.0030.01016.64
7.2.80.0040.00916.56
7.2.70.0040.00816.95
7.2.60.0050.00816.90
7.2.50.0090.00316.87
7.2.40.0060.00616.59
7.2.30.0000.00916.96
7.2.20.0090.00316.98
7.2.10.0060.00916.77
7.2.00.0100.00318.05
7.1.230.0100.00015.43
7.1.220.0030.00915.67
7.1.210.0070.00715.59
7.1.200.0040.01015.35
7.1.190.0040.00715.63
7.1.180.0090.00615.57
7.1.170.0030.01015.55
7.1.160.0090.00315.66
7.1.150.0060.00615.53
7.1.140.0080.00315.60
7.1.130.0030.00915.54
7.1.120.0030.01015.67
7.1.110.0060.00615.58
7.1.100.0060.00616.90
7.1.90.0030.01015.48
7.1.80.0060.00315.28
7.1.70.0020.00916.14
7.1.60.0060.01117.62
7.1.50.0100.00816.13
7.1.40.0100.00715.72
7.1.30.0040.01515.53
7.1.20.0100.00615.96
7.1.10.0000.01015.25
7.1.00.0120.03319.06
7.0.310.0030.01015.12
7.0.300.0030.00715.21
7.0.290.0080.00415.20
7.0.280.0070.00315.40
7.0.270.0080.00315.42
7.0.260.0040.00815.21
7.0.250.0070.00715.37
7.0.240.0100.00315.20
7.0.230.0000.00915.39
7.0.220.0080.00415.42
7.0.210.0000.01015.21
7.0.200.0200.00614.86
7.0.190.0090.00615.27
7.0.180.0080.00615.27
7.0.170.0040.00415.21
7.0.160.0030.01015.20
7.0.150.0030.00915.42
7.0.140.0070.00715.38
7.0.130.0110.00315.34
7.0.120.0030.01215.14
7.0.110.0100.00015.36
7.0.100.0030.00915.37
7.0.90.0030.00915.39
7.0.80.0030.01015.23
7.0.70.0030.01015.59
7.0.60.0020.02617.60
7.0.50.0050.04616.70
7.0.40.0050.03016.71
7.0.30.0260.03816.74
7.0.20.0030.02516.72
7.0.10.0060.02816.65
7.0.00.0070.04516.73
5.6.380.0030.00914.02
5.6.370.0050.00213.84
5.6.360.0060.00614.17
5.6.350.0060.00614.18
5.6.340.0000.00914.65
5.6.330.0070.00414.06
5.6.320.0080.00014.32
5.6.310.0040.00414.54
5.6.300.0040.00414.22
5.6.290.0070.00314.44
5.6.280.0030.03817.46
5.6.270.0080.00414.17
5.6.260.0060.00314.38
5.6.250.0080.00814.36
5.6.240.0070.00714.18
5.6.230.0100.00014.04
5.6.220.0110.00614.38
5.6.210.0020.04917.28
5.6.200.0060.04516.23
5.6.190.0070.04817.44
5.6.180.0180.03017.57
5.6.170.0150.03317.42
5.6.160.0040.03117.26
5.6.150.0080.02016.27
5.6.140.0070.02516.09
5.6.130.0140.01816.23
5.6.120.0030.04817.64
5.6.110.0070.04517.60
5.6.100.0080.03517.59
5.6.90.0080.04017.63
5.6.80.0070.04317.35
5.6.70.1700.02217.22
5.6.60.0030.01014.12
5.6.50.0040.01113.98
5.6.40.0030.00913.99
5.6.30.0090.00613.95
5.6.20.0120.00014.36
5.6.10.0060.00814.19
5.6.00.0150.00014.16
5.5.380.0030.00312.79
5.5.370.0030.00712.79
5.5.360.0030.00812.79
5.5.350.0160.01816.63
5.5.340.0050.02615.38
5.5.330.0070.03816.46
5.5.320.1900.02516.65
5.5.310.0140.02016.53
5.5.300.0030.03515.38
5.5.290.0050.02015.38
5.5.280.0030.05116.74
5.5.270.0090.04316.82
5.5.260.0070.04316.81
5.5.250.0020.04516.79
5.5.240.1090.02116.52
5.5.230.0000.00612.79
5.5.220.0030.00712.79
5.5.210.0000.01012.79
5.5.200.0030.00612.79
5.5.190.0060.00312.79
5.5.180.0030.00912.79
5.5.170.0060.00314.05
5.5.160.0040.00812.79
5.5.150.0110.00012.79
5.5.140.0060.00612.79
5.5.130.0040.00812.79
5.5.120.0080.00412.79
5.5.110.0000.00712.79
5.5.100.0000.00812.79
5.5.90.0020.00412.79
5.5.80.0060.00612.79
5.5.70.0070.00312.79
5.5.60.0000.00712.79
5.5.50.0030.00712.79
5.5.40.0040.00712.79
5.5.30.0030.00312.79
5.5.20.0050.00012.79
5.5.10.0040.00812.79
5.5.00.0000.01012.79
5.4.450.0330.03116.18
5.4.440.0320.03716.16
5.4.430.0320.03216.18
5.4.420.0430.02516.04
5.4.410.0460.03716.12
5.4.400.0420.02915.81
5.4.390.0460.02315.96
5.4.380.0400.02816.04
5.4.370.0440.02316.04
5.4.360.0340.03415.89
5.4.350.0320.03216.03
5.4.340.0450.03816.01
5.4.330.0040.00812.79
5.4.320.0490.03815.92
5.4.310.0400.04115.88
5.4.300.0380.03716.08
5.4.290.0630.03216.02
5.4.280.0480.03515.81
5.4.270.0430.03815.88
5.4.260.0340.03016.00
5.4.250.0450.03415.83
5.4.240.0500.02716.00
5.4.230.0430.03815.96
5.4.220.0420.03216.02
5.4.210.0440.02515.94
5.4.200.0400.03216.04
5.4.190.0410.03015.97
5.4.180.0380.03515.93
5.4.170.0450.02516.00
5.4.160.0510.02815.81
5.4.150.0400.03416.02
5.4.140.0470.02314.55
5.4.130.0440.02914.54
5.4.120.0400.02814.61
5.4.110.0450.03014.65
5.4.100.0440.02914.70
5.4.90.0380.03314.61
5.4.80.0430.02414.67
5.4.70.0140.02514.64
5.4.60.0170.03414.66
5.4.50.0050.02014.58
5.4.40.0040.01614.66
5.4.30.0050.02714.48
5.4.20.0130.03114.64
5.4.10.0120.00012.79
5.4.00.0030.00712.79

preferences:
54.37 ms | 401 KiB | 5 Q