3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING a:6:{s:5:"width";s:4:"3000";s:6:"height";s:4:"2100";s:14:"hwstring_small";s:23:"height=\'89\' width=\'128\'";s:4:"file";s:25:"2012/02/sopa_nicearma.jpg";s:5:"sizes";a:3:{s:9:"thumbnail";a:3:{s:4:"file";s:23:"sopa_nicearma-15x10.jpg";s:5:"width";s:2:"15";s:6:"height";s:2:"10";}s:6:"medium";a:3:{s:4:"file";s:25:"sopa_nicearma-300x210.jpg";s:5:"width";s:3:"300";s:6:"height";s:3:"210";}s:5:"large";a:3:{s:4:"file";s:25:"sopa_nicearma-700x490.jpg";s:5:"width";s:3:"700";s:6:"height";s:3:"490";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}} STRING; $array = unserialize(stripslashes($string)); unset($array['sizes']['thumbnail']); //print_r($array); echo "Old: $string\n"; echo "New: " , serialize($array);

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.130.0040.00418.37
8.3.120.0050.00318.97
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0150.00426.77
8.3.80.0030.00618.08
8.3.70.0150.00016.38
8.3.60.0130.01016.50
8.3.50.0050.01218.22
8.3.40.0060.01118.78
8.3.30.0110.00418.63
8.3.20.0050.00320.91
8.3.10.0040.00423.61
8.3.00.0000.00820.95
8.2.250.0000.00818.26
8.2.240.0040.00417.14
8.2.230.0040.00422.58
8.2.220.0160.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00618.05
8.2.190.0170.00016.75
8.2.180.0080.00818.30
8.2.170.0150.00022.96
8.2.160.0070.00720.24
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00918.07
8.2.120.0040.00426.35
8.2.110.0140.00322.01
8.2.100.0040.00717.78
8.2.90.0050.00319.21
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0030.00617.63
8.2.50.0000.00818.10
8.2.40.0000.00819.33
8.2.30.0060.00319.29
8.2.20.0000.00718.13
8.2.10.0040.00419.23
8.2.00.0000.00718.18
8.1.300.0170.00318.46
8.1.290.0090.00030.84
8.1.280.0130.00725.92
8.1.270.0070.00020.27
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00617.48
8.1.230.0040.00819.48
8.1.220.0090.00017.79
8.1.210.0030.00618.77
8.1.200.0090.00017.23
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0030.00518.59
8.1.160.0000.00718.88
8.1.150.0070.00018.84
8.1.140.0000.00719.07
8.1.130.0070.00017.43
8.1.120.0070.00317.34
8.1.110.0030.00517.44
8.1.100.0000.00717.40
8.1.90.0000.00717.24
8.1.80.0050.00317.43
8.1.70.0040.00417.37
8.1.60.0000.00817.46
8.1.50.0060.00617.49
8.1.40.0030.00617.45
8.1.30.0040.00417.46
8.1.20.0060.00317.47
8.1.10.0040.00417.61
8.1.00.0040.00417.56
8.0.300.0110.00018.77
8.0.290.0000.00716.88
8.0.280.0030.00318.48
8.0.270.0000.00717.26
8.0.260.0000.00718.67
8.0.250.0030.00317.03
8.0.240.0040.00417.00
8.0.230.0000.00817.02
8.0.220.0050.00216.95
8.0.210.0040.00416.84
8.0.200.0030.00716.95
8.0.190.0090.00317.02
8.0.180.0000.00816.87
8.0.170.0080.00016.86
8.0.160.0070.00016.87
8.0.150.0030.00416.87
8.0.140.0000.00716.77
8.0.130.0000.00813.36
8.0.120.0000.00816.91
8.0.110.0000.00716.96
8.0.100.0040.00416.94
8.0.90.0020.00616.83
8.0.80.0080.00516.89
8.0.70.0000.00716.96
8.0.60.0020.00516.86
8.0.50.0000.00716.88
8.0.30.0060.00916.95
8.0.20.0080.00616.87
8.0.10.0020.01016.94
8.0.00.0090.00717.04
7.4.330.0020.00216.66
7.4.320.0030.00316.62
7.4.300.0030.00316.55
7.4.290.0030.00316.52
7.4.280.0000.00816.40
7.4.270.0080.00016.52
7.4.260.0000.00816.62
7.4.250.0050.00216.43
7.4.240.0000.00716.48
7.4.230.0070.00016.63
7.4.220.0060.00216.49
7.4.210.0090.00616.57
7.4.200.0020.00516.64
7.4.190.0000.00816.56
7.4.180.0030.00316.69
7.4.160.0080.00516.44
7.4.150.0090.00116.59
7.4.140.0020.01116.56
7.4.130.0070.00616.37
7.4.120.0100.00616.42
7.4.110.0040.00916.38
7.4.100.0090.00516.60
7.4.90.0070.00716.50
7.4.80.0080.00517.42
7.4.70.0080.00616.58
7.4.60.0070.00916.46
7.4.50.0080.00616.49
7.4.40.0070.00616.56
7.4.30.0060.00716.58
7.4.20.0070.00516.55
7.4.10.0050.00616.42
7.4.00.0040.00816.07
7.3.330.0030.00313.08
7.3.320.0000.00513.04
7.3.310.0000.00716.41
7.3.300.0030.00316.32
7.3.290.0040.00416.29
7.3.280.0120.00716.34
7.3.270.0070.00416.32
7.3.260.0080.00916.47
7.3.250.0080.00516.31
7.3.240.0090.00616.41
7.3.230.0100.00716.45
7.3.220.0060.00816.28
7.3.210.0090.00416.38
7.3.200.0050.01016.29
7.3.190.0080.00616.30
7.3.180.0090.00416.38
7.3.170.0080.00716.36
7.3.160.0080.00616.34
7.3.150.0090.00116.28
7.3.140.0050.00516.49
7.3.130.0060.00816.29
7.3.120.0080.00416.31
7.3.110.0090.00216.40
7.3.100.0090.00516.35
7.3.90.0040.00716.44
7.3.80.0050.00616.36
7.3.70.0100.00316.27
7.3.60.0070.00316.43
7.3.50.0060.00516.42
7.3.40.0070.00815.90
7.3.30.0110.00115.90
7.3.20.0030.00817.04
7.3.10.0100.00016.92
7.3.00.0070.00616.97
7.2.340.0070.01116.59
7.2.330.0110.00816.42
7.2.320.0100.00916.51
7.2.310.0130.00616.58
7.2.300.0090.01316.56
7.2.290.0100.00916.41
7.2.280.0090.00916.51
7.2.270.0100.01016.52
7.2.260.0110.00716.46
7.2.250.0080.01116.59
7.2.240.0110.00716.54
7.2.230.0100.00816.57
7.2.220.0120.00716.50
7.2.210.0130.00916.36
7.2.200.0140.00616.54
7.2.190.0170.00416.48
7.2.180.0120.00616.46
7.2.170.0110.00716.04
7.2.160.0120.00516.05
7.2.150.0070.00917.36
7.2.140.0130.00617.29
7.2.130.0110.00817.34
7.2.120.0090.00917.29
7.2.110.0140.00317.38
7.2.100.0110.00817.41
7.2.90.0130.00517.34
7.2.80.0120.00617.30
7.2.70.0160.00317.33
7.2.60.0100.00917.34
7.2.50.0150.00417.26
7.2.40.0050.01017.42
7.2.30.0110.00717.28
7.2.20.0120.00717.35
7.2.10.0160.00117.41
7.2.00.0110.01217.44
7.1.330.0520.00316.42
7.1.320.0170.00816.54
7.1.310.0140.00616.50
7.1.300.0090.01116.47
7.1.290.0110.00816.41
7.1.280.0130.00716.21
7.1.270.0100.00516.27
7.1.260.0100.00616.10
7.1.250.0140.00316.08
7.1.240.0110.00816.35
7.1.230.0100.00916.46
7.1.220.1070.00416.44
7.1.210.0080.01016.43
7.1.200.0150.00516.38
7.1.190.0090.01016.39
7.1.180.0100.00816.34
7.1.170.0120.00516.32
7.1.160.0140.00316.40
7.1.150.0110.00816.44
7.1.140.0120.00716.34
7.1.130.0140.00516.54
7.1.120.0110.00616.31
7.1.110.0170.00416.44
7.1.100.0070.00916.42
7.1.90.0100.00816.39
7.1.80.0130.00716.43
7.1.70.0160.00616.26
7.1.60.0110.01016.36
7.1.50.0120.00816.39
7.1.40.0140.00816.47
7.1.30.0140.00416.43
7.1.20.0130.00916.46
7.1.10.0140.00616.34
7.1.00.0110.00816.35

preferences:
28.86 ms | 403 KiB | 5 Q