3v4l.org

run code in 300+ PHP versions simultaneously
<?php $corrupted = <<<STRING a:8:{i:0;a:7:{s:2:"id";s:2:"16";s:4:"slug";s:8:"fieldset";s:4:"name";s:8:"Fieldset";s:4:"type";s:8:"fieldset";s:7:"options";s:0:"";s:9:"parent_id";s:1:"0";s:5:"value";s:0:"";}i:1;a:7:{s:2:"id";s:2:"20";s:4:"slug";s:9:"your-name";s:4:"name";s:9:"Your Name";s:4:"type";s:4:"text";s:7:"options";s:0:"";s:9:"parent_id";s:1:"0";s:5:"value";s:11:"SamueljalIL";}i:2;a:7:{s:2:"id";s:2:"21";s:4:"slug";s:10:"your-email";s:4:"name";s:10:"Your Email";s:4:"type";s:5:"email";s:7:"options";s:0:"";s:9:"parent_id";s:1:"0";s:5:"value";s:16:"dimitryg@msn.com";}i:3;a:7:{s:2:"id";s:2:"24";s:4:"slug";s:5:"phone";s:4:"name";s:5:"Phone";s:4:"type";s:4:"text";s:7:"options";s:0:"";s:9:"parent_id";s:1:"0";s:5:"value";s:11:"88621295115";}i:4;a:7:{s:2:"id";s:2:"22";s:4:"slug";s:12:"your-message";s:4:"name";s:12:"Your Message";s:4:"type";s:8:"textarea";s:7:"options";s:0:"";s:9:"parent_id";s:1:"0";s:5:"value";s:1876:"Havе yоu listenеd http://boletines.consumer.es/?p=50&amp;u=https://gdfgl/96D4u9";}i:5;a:7:{s:2:"id";s:2:"17";s:4:"slug";s:12:"verification";s:4:"name";s:12:"Verification";s:4:"type";s:12:"verification";s:7:"options";s:0:"";s:9:"parent_id";s:1:"0";s:5:"value";s:0:"";}i:6;a:7:{s:2:"id";s:2:"18";s:4:"slug";s:27:"please-enter-any-two-digits";s:4:"name";s:27:"Please enter any two digits";s:4:"type";s:6:"secret";s:7:"options";s:0:"";s:9:"parent_id";s:2:"17";s:5:"value";s:2:"82";}i:7;a:7:{s:2:"id";s:2:"19";s:4:"slug";s:6:"submit";s:4:"name";s:6:"Submit";s:4:"type";s:6:"submit";s:7:"options";s:0:"";s:9:"parent_id";s:2:"17";s:5:"value";s:0:"";}} STRING; $repaired = preg_replace_callback( '/s:\d+:"(.*?)";/s', function ($m) { return "s:" . strlen($m[1]) . ":\"{$m[1]}\";"; }, $corrupted ); echo $corrupted , "\n" , $repaired; echo "\n---\n"; var_export(unserialize($repaired));

Abusive script

This script was stopped while abusing our resources

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.110.0080.00420.94
8.3.100.0160.00324.06
8.3.90.0060.00926.77
8.3.80.0030.00616.75
8.3.70.0120.00618.55
8.3.60.0150.00318.43
8.3.50.0080.00817.46
8.3.40.0160.00019.00
8.3.30.0080.00818.95
8.3.20.0040.00420.76
8.3.10.0030.00523.66
8.3.00.0040.00420.84
8.2.230.0080.00822.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00616.63
8.2.190.0160.00016.88
8.2.180.0030.01218.54
8.2.170.0070.01022.96
8.2.160.0100.00320.36
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0030.00618.34
8.2.120.0040.00426.35
8.2.110.0100.00021.16
8.2.100.0060.00618.03
8.2.90.0090.00018.22
8.2.80.0050.00317.97
8.2.70.0050.00518.05
8.2.60.0000.00820.07
8.2.50.0080.00518.10
8.2.40.0060.00319.36
8.2.30.0030.00519.44
8.2.20.0040.00418.19
8.2.10.0060.00319.37
8.2.00.0020.00518.47
8.1.290.0000.01030.84
8.1.280.0100.01025.92
8.1.270.0050.00320.50
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.91
8.1.230.0040.00721.04
8.1.220.0040.00417.91
8.1.210.0040.00419.04
8.1.200.0000.00817.60
8.1.190.0060.00317.38
8.1.180.0030.00518.10
8.1.170.0060.00318.84
8.1.160.0040.00418.93
8.1.150.0000.00818.97
8.1.140.0000.00819.01
8.1.130.0030.00320.32
8.1.120.0040.00417.54
8.1.110.0050.00317.70
8.1.100.0030.00617.64
8.1.90.0080.00017.70
8.1.80.0040.00717.52
8.1.70.0030.00317.60
8.1.60.0030.00617.78
8.1.50.0050.00317.77
8.1.40.0040.00417.74
8.1.30.0000.00817.87
8.1.20.0040.00417.87
8.1.10.0000.00817.65
8.1.00.0090.00017.74
8.0.300.0080.00020.19
8.0.290.0060.00317.13
8.0.280.0040.00418.53
8.0.270.0090.00017.02
8.0.260.0030.00318.40
8.0.250.0040.00417.26
8.0.240.0060.00317.22
8.0.230.0050.00217.27
8.0.220.0050.00317.20
8.0.210.0000.00717.15
8.0.200.0060.00017.13
8.0.190.0050.00317.18
8.0.180.0000.00817.23
8.0.170.0040.00417.09
8.0.160.0000.00717.08
8.0.150.0050.00317.10
8.0.140.0040.00417.13
8.0.130.0000.00613.67
8.0.120.0000.00717.17
8.0.110.0000.00917.19
8.0.100.0040.00417.05
8.0.90.0040.00417.08
8.0.80.0090.00917.15
8.0.70.0040.00417.20
8.0.60.0000.00817.29
8.0.50.0000.00717.14
8.0.30.0140.00717.08
8.0.20.0070.01317.33
8.0.10.0000.00817.31
8.0.00.0140.00817.04
7.4.330.0000.00616.75
7.4.320.0030.00316.85
7.4.300.0040.00416.77
7.4.290.0050.00316.89
7.4.280.0000.00816.80
7.4.270.0030.00316.69
7.4.260.0040.00316.74
7.4.250.0000.00716.75
7.4.240.0000.00716.87
7.4.230.0000.00716.62
7.4.220.0080.00016.58
7.4.210.0100.00816.86
7.4.200.0070.00016.63
7.4.160.0100.00616.80
7.4.130.0180.00616.82
7.4.120.0100.01316.83
7.4.110.0070.01116.86
7.4.100.0100.01016.88
7.4.90.0100.00716.92
7.4.80.0160.00319.39
7.4.70.0090.00916.89
7.4.60.0160.00316.75
7.4.50.0070.01016.95
7.4.40.0140.00316.61
7.4.10.0070.01115.22
7.4.00.0110.00515.13
7.3.330.0060.00013.60
7.3.320.0030.00313.66
7.3.310.0040.00416.52
7.3.300.0070.00016.70
7.3.290.0030.01616.65
7.3.280.0060.01016.63
7.3.260.0110.00816.70
7.3.240.0100.00916.70
7.3.230.0140.00316.63
7.3.210.0040.01216.87
7.3.200.0140.00316.62
7.3.190.0100.00816.84
7.3.180.0090.00916.66
7.3.170.0100.00716.68
7.3.160.0130.00916.77
7.3.130.0090.00915.36
7.3.120.0100.00715.14
7.3.110.0000.01915.11
7.3.100.0120.00314.89
7.3.90.0120.00315.13
7.3.80.0000.01415.01
7.3.70.0070.01014.89
7.3.60.0120.00315.29
7.3.50.0040.00815.21
7.3.40.0100.00315.17
7.3.30.0090.00415.21
7.3.20.0050.01216.79
7.3.10.0060.00816.83
7.3.00.0090.00516.90
7.2.330.0120.00916.98
7.2.320.0100.01016.93
7.2.310.0130.01016.95
7.2.300.0060.00916.94
7.2.290.0140.01016.86
7.2.260.0070.01115.21
7.2.250.0060.01215.22
7.2.240.0120.00615.16
7.2.230.0030.00715.13
7.2.220.0070.01015.26
7.2.210.0000.00915.33
7.2.200.0100.00715.10
7.2.190.0000.01015.25
7.2.180.0110.00415.36
7.2.170.0050.01215.15
7.2.160.0080.00815.29
7.2.150.0070.00517.13
7.2.140.0090.00516.79
7.2.130.0080.00417.12
7.2.120.0090.01116.97
7.2.110.0030.01017.20
7.2.100.0070.00517.13
7.2.90.0090.01117.22
7.2.80.0110.00417.19
7.2.70.0070.00717.27
7.2.60.0040.01517.09
7.2.50.0110.00517.06
7.2.40.0050.01117.09
7.2.30.0140.00617.29
7.2.20.0100.00617.13
7.2.10.0100.00917.10
7.2.00.0050.01417.14
7.1.330.0030.01315.88
7.1.320.0030.01115.90
7.1.310.0040.00715.77
7.1.300.0070.00315.94
7.1.290.0040.00716.07
7.1.280.0040.01015.94
7.1.270.0030.01215.95
7.1.260.0050.00915.88
7.1.250.0110.00615.94
7.1.240.0030.00615.62
7.1.230.0040.01115.74
7.1.220.0100.00616.08
7.1.210.0060.01215.72
7.1.200.0060.00316.11
7.1.190.0000.01316.09
7.1.180.0070.00716.20
7.1.170.0030.01316.16
7.1.160.0000.01616.08
7.1.150.0060.00816.13
7.1.140.0030.00915.83
7.1.130.0140.00015.94
7.1.120.0030.01216.18
7.1.110.0000.01515.81
7.1.100.0060.00915.98
7.1.90.0070.00715.54
7.1.80.0000.01416.10
7.1.70.0030.01015.45
7.1.60.0030.00715.96
7.1.50.0070.00315.84
7.1.40.0030.00715.76
7.1.30.0030.00616.03
7.1.20.0060.00616.06
7.1.10.0030.01015.66
7.1.00.0040.00815.93

preferences:
32.65 ms | 403 KiB | 5 Q