3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"H":[{"f": "FR100400061","d": "2016-01-25T12:17:57","i": "80222557","n": "El gio gonzales","s": 1,"CustAccount": "1004","c":"Court de Tennis","m":"1008","mn":"Wide World Importers","d":"frrt","cb": "123","cd": "2016-01-25T12:17:57"}],"L": [{"i": "IVA21","f": "","n": "Zapatitos","tv": 123.0,"txv": 21.35,"bv": 101.65,"f":"FR100400061","rv": 13.0,"d": "frrt"}],"T":[{"t":"80222557","e":"garanda21@gmail.com","n":"El gio gonzales","c": "PE","cn": "Peru","a":"Calle de abaja bien abajo","g": 1,"b":"23/12/1982"}]}'; $string = '"FR100400061"'; /* $str = "sample data"; $bzstr = bzcompress($string, 9); echo $bzstr;*/ //$string = str_repeat('1234567890'.implode('',range('a','z')),48800); echo "Lenght original string: " . strlen($string);//1756800 bytes $compressed = eval(gzdeflate($string, 9)); //$compressed = gzdeflate($compressed, 9); echo ' Lenght compresed string: '.strlen($compressed);//99 bytes //echo $string //echo gzinflate(gzinflate($compressed)); ?>

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.70.0090.00616.87
8.3.60.0110.00718.68
8.3.50.0110.00821.94
8.3.40.0090.00619.27
8.3.30.0100.00618.91
8.3.20.0000.00720.54
8.3.10.0060.00320.91
8.3.00.0080.00022.23
8.2.190.0120.00316.75
8.2.180.0060.01218.27
8.2.170.0150.00022.96
8.2.160.0110.00422.30
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0090.00021.00
8.2.120.0050.00226.35
8.2.110.0140.00722.25
8.2.100.0060.00618.16
8.2.90.0000.00819.33
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0030.00618.18
8.2.50.0040.00418.09
8.2.40.0000.00820.59
8.2.30.0000.00719.59
8.2.20.0040.00417.86
8.2.10.0050.00318.26
8.2.00.0040.00418.21
8.1.280.0140.00025.92
8.1.270.0080.00822.36
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00022.31
8.1.230.0040.00817.70
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0050.00317.48
8.1.180.0080.00018.10
8.1.170.0040.00718.73
8.1.160.0070.00020.83
8.1.150.0000.00718.95
8.1.140.0000.00819.73
8.1.130.0030.00317.73
8.1.120.0040.00417.70
8.1.110.0020.00517.68
8.1.100.0000.00817.58
8.1.90.0080.00017.63
8.1.80.0000.00717.65
8.1.70.0070.00317.62
8.1.60.0030.00717.82
8.1.50.0030.00517.71
8.1.40.0090.00017.63
8.1.30.0080.00017.81
8.1.20.0000.00717.63
8.1.10.0000.00917.79
8.1.00.0040.00417.70
8.0.300.0070.00018.77
8.0.290.0060.00317.00
8.0.280.0050.00318.56
8.0.270.0040.00417.43
8.0.260.0040.00417.32
8.0.250.0080.00017.18
8.0.240.0030.00317.21
8.0.230.0000.00717.16
8.0.220.0050.00517.13
8.0.210.0000.00717.10
8.0.200.0040.00417.15
8.0.190.0040.00417.14
8.0.180.0000.00817.16
8.0.170.0040.00417.08
8.0.160.0000.00717.20
8.0.150.0000.00817.03
8.0.140.0000.00717.09
8.0.130.0060.00013.64
8.0.120.0050.00317.05
8.0.110.0000.00817.10
8.0.100.0040.00417.06
8.0.90.0040.00417.06
8.0.80.0130.00917.18
8.0.70.0070.00017.04
8.0.60.0040.00417.00
8.0.50.0040.00417.09
8.0.30.0090.00817.26
8.0.20.0150.00517.40
8.0.10.0040.00417.14
8.0.00.0120.00717.09
7.4.330.0020.00216.91
7.4.320.0000.00716.71
7.4.300.0030.00316.81
7.4.290.0000.00816.68
7.4.280.0050.00216.73
7.4.270.0050.00216.66
7.4.260.0030.00516.64
7.4.250.0040.00416.61
7.4.240.0000.00716.68
7.4.230.0000.00716.84
7.4.220.0030.01316.74
7.4.210.0080.00716.62
7.4.200.0040.00416.85
7.4.160.0090.00616.64
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0070.01316.67
7.4.120.0080.01316.73
7.4.110.0100.00716.79
7.4.100.0240.00016.89
7.4.90.0030.01416.48
7.4.80.0070.01519.39
7.4.70.0130.00416.71
7.4.60.0080.00916.78
7.4.50.0000.01616.70
7.4.40.0110.00616.45
7.4.30.0070.01016.75
7.4.00.0090.00615.11
7.3.330.0000.00513.53
7.3.320.0000.00513.46
7.3.310.0040.00416.57
7.3.300.0000.00716.53
7.3.290.0000.00716.44
7.3.280.0110.00716.50
7.3.270.0100.01017.40
7.3.260.0060.01116.55
7.3.250.0100.00816.69
7.3.240.0080.00916.65
7.3.230.0120.00616.50
7.3.210.0030.01716.51
7.3.200.0080.01116.59
7.3.190.0120.00616.73
7.3.180.0100.00616.68
7.3.170.0170.00016.73
7.3.160.0110.00516.66
7.3.120.0070.01015.02
7.3.110.0090.00914.82
7.3.100.0060.01315.00
7.3.90.0070.01315.00
7.3.80.0080.00415.16
7.3.70.0090.00914.76
7.3.60.0090.00615.09
7.3.50.0070.00714.91
7.3.40.0070.01015.02
7.3.30.0030.01015.08
7.3.20.0100.00616.88
7.3.10.0030.01416.59
7.3.00.0060.00616.80
7.2.330.0070.01116.88
7.2.320.0100.00716.53
7.2.310.0130.00716.89
7.2.300.0100.01116.75
7.2.290.0030.01316.63
7.2.250.0100.01015.06
7.2.240.0060.01015.09
7.2.230.0130.00615.31
7.2.220.0060.01215.09
7.2.210.0030.01315.05
7.2.200.0040.00815.23
7.2.190.0040.01515.23
7.2.180.0110.00715.28
7.2.170.0070.00314.99
7.2.60.0000.01317.06
7.2.00.0000.01519.11
7.1.330.0060.00715.81
7.1.320.0100.00715.68
7.1.310.0090.00916.00
7.1.300.0140.00015.82
7.1.290.0030.01015.91
7.1.280.0060.00615.73
7.1.270.0060.00915.74
7.1.260.0090.00615.84
7.1.200.0060.00915.76
7.1.100.0030.01218.30
7.1.70.0000.00817.15
7.1.60.0040.01819.27
7.1.50.0070.01516.91
7.1.00.0000.07022.37
7.0.200.0100.00715.23
7.0.60.0430.07320.17
7.0.50.0030.04318.04
7.0.40.0100.04020.16
7.0.30.0430.05020.25
7.0.20.0230.06020.07
7.0.10.0070.09020.35
7.0.00.0030.04320.10
5.6.280.0070.03320.98
5.6.210.0070.08020.73
5.6.200.0000.07318.15
5.6.190.0030.05720.35
5.6.180.0230.08720.66
5.6.170.0270.04720.49
5.6.160.0030.06320.51
5.6.150.0030.05318.28
5.6.140.0030.08718.34
5.6.130.0130.05018.21
5.6.120.0070.04721.15
5.6.110.0170.05021.11
5.6.100.0070.08021.27
5.6.90.0070.06021.06
5.6.80.0100.03020.58
5.5.350.0270.07720.56
5.5.340.0100.03718.05
5.5.330.0000.05020.39
5.5.320.0470.04020.36
5.5.310.0330.07020.49
5.5.300.0070.05018.13
5.5.290.0100.03318.15
5.5.280.0070.04020.82
5.5.270.0030.04721.10
5.5.260.0000.05320.92
5.5.250.0030.04020.63
5.5.240.0070.06720.32

preferences:
60.95 ms | 401 KiB | 5 Q