3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ToS{function __toString(){die("hi");}} //$e=new exception; $e=unserialize('O:9:"Exception":7:{s:7:"message";s:0:"";s:15:"Exceptionstring";s:0:"";s:4:"code";i:0;s:4:"file";s:9:"/in/1Vigq";s:4:"line";i:2;s:14:"Exceptiontrace";a:0:{}s:8:"previous";O:3:"ToS":0:{}}'); 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.0110.00716.63
8.3.50.0150.00016.45
8.3.40.0090.00618.60
8.3.30.0150.00018.84
8.3.20.0040.00420.34
8.3.10.0040.00423.65
8.3.00.0030.00519.66
8.2.180.0070.01018.41
8.2.170.0090.00622.96
8.2.160.0130.00320.52
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00817.75
8.2.110.0070.01022.25
8.2.100.0060.00617.63
8.2.90.0000.00919.04
8.2.80.0060.00317.97
8.2.70.0030.00617.75
8.2.60.0040.00717.93
8.2.50.0060.00318.07
8.2.40.0030.00619.41
8.2.30.0040.00419.43
8.2.20.0040.00417.74
8.2.10.0070.00018.05
8.2.00.0070.00018.05
8.1.270.0110.00422.11
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.01022.52
8.1.230.0090.00317.42
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0070.00318.59
8.1.160.0080.00022.07
8.1.150.0040.00418.90
8.1.140.0040.00417.34
8.1.130.0070.00017.51
8.1.120.0070.00017.30
8.1.110.0000.00717.41
8.1.100.0070.00017.46
8.1.90.0000.00717.42
8.1.80.0060.00317.38
8.1.70.0000.00717.30
8.1.60.0030.00517.53
8.1.50.0000.00717.35
8.1.40.0060.00617.46
8.1.30.0000.00717.63
8.1.20.0040.00417.44
8.1.10.0050.00217.53
8.1.00.0000.00717.42
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00818.40
8.0.270.0000.00717.32
8.0.260.0000.00617.14
8.0.250.0060.00317.04
8.0.240.0040.00417.04
8.0.230.0060.00316.90
8.0.220.0030.00416.94
8.0.210.0000.00716.90
8.0.200.0000.00817.01
8.0.190.0000.00817.05
8.0.180.0040.00416.88
8.0.170.0070.00016.83
8.0.160.0000.00716.80
8.0.150.0000.00816.90
8.0.140.0040.00416.93
8.0.130.0060.00013.34
8.0.120.0050.00216.88
8.0.110.0040.00416.87
8.0.100.0040.00416.73
8.0.90.0050.00316.91
8.0.80.0090.00616.90
8.0.70.0000.00716.79
8.0.60.0000.00716.90
8.0.50.0000.00816.94
8.0.30.0080.01017.02
8.0.20.0130.00817.40
8.0.10.0000.00717.00
8.0.00.0130.00716.79
7.4.330.0050.00015.08
7.4.320.0030.00316.45
7.4.300.0030.00316.51
7.4.290.0070.00016.54
7.4.280.0030.00616.57
7.4.270.0050.00316.51
7.4.260.0000.00816.34
7.4.250.0000.00716.39
7.4.240.0020.00516.52
7.4.230.0030.00316.54
7.4.220.0070.01116.46
7.4.210.0000.01316.48
7.4.200.0020.00516.49
7.4.160.0080.00816.46
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.01016.61
7.4.120.0060.01016.48
7.4.110.0160.00716.42
7.4.100.0150.00916.59
7.4.90.0080.00816.55
7.4.80.0070.01019.39
7.4.70.0000.01716.29
7.4.60.0060.01116.55
7.4.50.0040.00416.45
7.4.40.0060.01116.22
7.4.30.0150.00916.68
7.4.00.0070.01014.78
7.3.330.0030.00313.23
7.3.320.0000.00613.30
7.3.310.0020.00516.35
7.3.300.0030.00316.32
7.3.290.0060.01016.31
7.3.280.0080.00916.33
7.3.270.0090.00917.40
7.3.260.0130.00416.30
7.3.250.0120.00416.39
7.3.240.0130.00716.46
7.3.230.0110.00716.46
7.3.210.0120.00616.18
7.3.200.0100.00616.42
7.3.190.0100.00916.25
7.3.180.0060.01016.31
7.3.170.0100.01016.53
7.3.160.0110.00616.46
7.2.330.0100.00716.56
7.2.320.0060.01216.36
7.2.310.0070.01016.70
7.2.300.0040.01816.54
7.2.290.0120.00616.52
7.2.80.0030.00916.63
7.2.60.0040.00916.75
7.2.00.0090.00319.35
7.1.200.0030.00715.76
7.1.100.0030.00918.04
7.1.70.0040.00416.95
7.1.60.0100.00719.27
7.1.50.0100.01434.68
7.1.00.0070.07322.33
7.0.200.0000.00816.63
7.0.60.0130.07019.86
7.0.50.0130.03717.89
7.0.40.0100.07320.27
7.0.30.0270.05320.06
7.0.20.0170.05720.21
7.0.10.0070.04320.22
7.0.00.0070.08020.09
5.6.280.0070.04020.81
5.6.210.0070.03720.49
5.6.200.0130.08018.15
5.6.190.0100.08320.57
5.6.180.4330.04320.67
5.6.170.0230.05020.55
5.6.160.0130.05020.54
5.6.150.0100.06318.17
5.6.140.0070.08718.18
5.6.130.0130.06718.18
5.6.120.0070.08020.98
5.6.110.0130.07720.97
5.6.100.0070.07720.96
5.6.90.0130.06720.88
5.6.80.0030.04020.38
5.6.70.3900.04020.33
5.5.350.0030.08020.43
5.5.340.0100.04317.98
5.5.330.0070.04020.43
5.5.320.0230.05020.27
5.5.310.0130.04720.26
5.5.300.0200.06717.97
5.5.290.0100.03718.07
5.5.280.0070.07320.89
5.5.270.0100.06020.76
5.5.260.0230.06720.76
5.5.250.0130.08020.45
5.5.240.0000.07320.35
5.4.450.0230.05319.44
5.4.440.0200.08019.38
5.4.430.0330.06719.32
5.4.420.0370.04319.53
5.4.410.0130.06319.42
5.4.400.0230.05019.03
5.4.390.0200.06719.22
5.4.380.0300.05019.11
5.4.370.0200.07019.34
5.4.360.0100.08019.08
5.4.350.0230.05318.82
5.4.340.0170.06319.23
5.4.320.0230.05318.80
5.4.310.0230.05019.07
5.4.300.0270.05019.20
5.4.290.0270.05719.20
5.4.280.0130.06719.21
5.4.270.0230.05318.82
5.4.260.0170.06019.22
5.4.250.0230.05719.00
5.4.240.0200.06018.99
5.4.230.0230.06719.04
5.4.220.0130.06319.04
5.4.210.0270.05719.05
5.4.200.0030.06719.05
5.4.190.0230.05319.24
5.4.180.0170.05319.24
5.4.170.0130.06019.06
5.4.160.0370.05019.22
5.4.150.0200.05319.06
5.4.140.0130.07716.38
5.4.130.0230.05016.32
5.4.120.0230.05016.36
5.4.110.0200.05316.29
5.4.100.0170.05716.55
5.4.90.0230.06016.41
5.4.80.0170.05016.48
5.4.70.0200.04716.57
5.4.60.0330.07316.53
5.4.50.0000.07716.52
5.4.40.0030.07316.44
5.4.30.0070.05316.53
5.4.20.0270.06716.38

preferences:
61.3 ms | 400 KiB | 5 Q