3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ToS{var $message; var $file; function getMessage(){return $this->message;}function __toString(){die("hi there");}} //$e=new exception; $e=unserialize('O:9:"Exception":1:{s:19:"'."\0".'Exception'."\0".'previous";O:3:"ToS":2:{s:7:"message";s:2:"hi";s:4:"file";s:3:"bye";}}'); echo $e;

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.0040.01816.63
8.3.50.0110.00416.26
8.3.40.0070.00718.60
8.3.30.0110.00418.66
8.3.20.0060.00320.04
8.3.10.0040.00423.46
8.3.00.0040.00419.68
8.2.180.0110.00716.75
8.2.170.0140.00322.96
8.2.160.0130.00020.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00417.38
8.2.110.0030.01722.30
8.2.100.0110.00017.72
8.2.90.0040.00418.08
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0090.00217.93
8.2.50.0000.00918.07
8.2.40.0040.00419.34
8.2.30.0040.00419.40
8.2.20.0000.00717.76
8.2.10.0000.00817.95
8.2.00.0040.00418.11
8.1.280.0140.00025.92
8.1.270.0120.00321.91
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0080.00022.13
8.1.230.0100.00020.89
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0060.00317.13
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0030.00522.07
8.1.150.0040.00418.75
8.1.140.0040.00417.46
8.1.130.0000.00817.52
8.1.120.0040.00317.41
8.1.110.0000.00717.46
8.1.100.0050.00317.36
8.1.90.0000.00717.30
8.1.80.0040.00417.30
8.1.70.0040.00417.32
8.1.60.0040.00417.55
8.1.50.0000.00917.51
8.1.40.0040.00717.46
8.1.30.0070.00017.55
8.1.20.0040.00417.51
8.1.10.0040.00417.43
8.1.00.0000.00817.46
8.0.300.0040.00420.08
8.0.290.0040.00416.63
8.0.280.0030.00318.47
8.0.270.0040.00417.27
8.0.260.0040.00417.28
8.0.250.0070.00017.02
8.0.240.0050.00316.91
8.0.230.0000.00716.89
8.0.220.0030.00316.96
8.0.210.0040.00416.98
8.0.200.0000.00717.07
8.0.190.0030.00516.90
8.0.180.0000.00717.04
8.0.170.0070.00016.88
8.0.160.0030.00517.06
8.0.150.0050.00316.78
8.0.140.0000.00816.91
8.0.130.0000.00613.43
8.0.120.0040.00416.91
8.0.110.0080.00016.92
8.0.100.0000.00716.84
8.0.90.0040.00417.04
8.0.80.0090.00617.01
8.0.70.0070.00017.04
8.0.60.0050.00316.87
8.0.50.0040.00416.96
8.0.30.0130.00816.97
8.0.20.0130.01217.43
8.0.10.0040.00317.01
8.0.00.0090.00916.89
7.4.330.0000.00515.08
7.4.320.0000.00616.51
7.4.300.0030.00316.47
7.4.290.0000.00716.45
7.4.280.0040.00416.55
7.4.270.0070.00416.49
7.4.260.0030.00316.55
7.4.250.0050.00316.57
7.4.240.0070.00016.51
7.4.230.0030.00416.66
7.4.220.0170.00716.65
7.4.210.0070.00716.50
7.4.200.0030.00316.29
7.4.160.0060.01016.50
7.4.150.0130.00917.40
7.4.140.0110.00817.86
7.4.130.0110.00616.52
7.4.120.0030.01616.47
7.4.110.0090.00916.43
7.4.100.0040.01416.53
7.4.90.0170.02016.45
7.4.80.0050.01119.39
7.4.70.0070.01616.50
7.4.60.0080.00916.49
7.4.50.0040.00416.62
7.4.40.0130.00316.43
7.4.30.0150.00416.47
7.4.00.0080.00815.08
7.3.330.0000.00613.34
7.3.320.0030.00313.15
7.3.310.0070.00016.36
7.3.300.0070.00016.33
7.3.290.0090.00616.33
7.3.280.0090.01216.29
7.3.270.0130.00317.40
7.3.260.0110.00716.32
7.3.250.0130.00616.32
7.3.240.0140.01016.29
7.3.230.0060.01216.39
7.3.210.0100.00616.57
7.3.200.0060.01616.21
7.3.190.0100.00616.39
7.3.180.0130.00616.35
7.3.170.0060.00916.32
7.3.160.0060.01016.31
7.3.120.0080.00714.87
7.3.110.0100.00714.78
7.3.100.0050.01314.97
7.3.90.0050.01114.66
7.3.80.0060.00714.58
7.3.70.0080.00514.74
7.3.60.0050.00814.80
7.3.50.0070.00814.84
7.3.40.0020.00714.81
7.3.30.0040.01014.74
7.3.20.0070.00816.60
7.3.10.0070.00716.65
7.3.00.0070.00516.51
7.2.330.0100.00716.56
7.2.320.0090.00916.41
7.2.310.0140.00716.48
7.2.300.0040.01716.62
7.2.290.0060.01616.66
7.2.250.0040.01114.91
7.2.240.0110.01014.86
7.2.230.0070.00815.09
7.2.220.0040.00714.91
7.2.210.0050.00814.99
7.2.200.0040.01314.98
7.2.190.0050.00914.91
7.2.180.0100.00115.02
7.2.170.0030.00914.99
7.2.60.0060.00916.88
7.2.00.0060.00919.41
7.1.330.0070.00815.71
7.1.320.0080.00315.48
7.1.310.0040.01115.80
7.1.300.0080.00515.67
7.1.290.0070.00615.62
7.1.280.0060.00415.55
7.1.270.0050.00715.63
7.1.260.0090.00415.80
7.1.200.0070.00015.72
7.1.100.0000.01017.87
7.1.70.0030.00516.87
7.1.60.0000.01119.27
7.1.50.0190.01334.71
7.1.00.0070.07322.36
7.0.200.0000.00816.74
7.0.60.0230.07019.96
7.0.50.0100.03317.88
7.0.40.0070.08720.15
7.0.30.0370.05020.38
7.0.20.0230.07720.16
7.0.10.0070.05320.07
7.0.00.0030.04320.30
5.6.280.0030.04321.03
5.6.210.0070.04320.72
5.6.200.0070.07018.29
5.6.190.0130.06020.39
5.6.180.3430.04020.47
5.6.170.0170.05020.44
5.6.160.0070.08320.52
5.6.150.0030.04718.23
5.6.140.0030.08018.18
5.6.130.0070.07318.15
5.6.120.0100.08021.05
5.6.110.0000.04321.13
5.6.100.0100.06320.99
5.6.90.0030.08721.11
5.6.80.0130.07720.54
5.6.70.3470.04320.41
5.5.350.0030.07020.43
5.5.340.0070.07717.93
5.5.330.0130.07720.35
5.5.320.0330.07320.27
5.5.310.0200.06720.23
5.5.300.0100.05317.98
5.5.290.0000.06717.99
5.5.280.0030.04320.74
5.5.270.0130.08020.88
5.5.260.0070.06320.88
5.5.250.0130.07720.70
5.5.240.0070.06320.27
5.4.450.0700.06719.50
5.4.440.1030.06319.17
5.4.430.0830.05719.23
5.4.420.0970.07719.48
5.4.410.1170.07019.14
5.4.400.0870.06718.80
5.4.390.0800.06719.16
5.4.380.0670.05719.07
5.4.370.0800.05319.16
5.4.360.0830.04719.21
5.4.350.0830.04719.06
5.4.340.0700.07019.05
5.4.320.0700.05319.02
5.4.310.0670.05719.01
5.4.300.0730.05718.97
5.4.290.0870.06319.01
5.4.280.0700.06018.94
5.4.270.0930.06319.01
5.4.260.0830.05318.79
5.4.250.0800.05018.89
5.4.240.0770.06019.00
5.4.230.0870.04319.02
5.4.220.0730.06018.88
5.4.210.0830.04719.05
5.4.200.0830.05319.04
5.4.190.0800.05318.91
5.4.180.0800.06319.06
5.4.170.0770.04718.91
5.4.160.0700.05019.00
5.4.150.0730.06318.99
5.4.140.0770.06716.40
5.4.130.0700.04716.33
5.4.120.0770.06316.33
5.4.110.0770.07716.25
5.4.100.0900.04316.46
5.4.90.0770.05316.61
5.4.80.0670.05016.50
5.4.70.0200.05016.45
5.4.60.0270.07016.32
5.4.50.0030.07016.25
5.4.40.0000.06716.21
5.4.30.0000.03316.20
5.4.20.0200.06316.24

preferences:
66.46 ms | 400 KiB | 5 Q