3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(0,10000); $start = microtime(TRUE); md5(serialize($a)); echo "md5(serialize..:" . microtime(TRUE) - $start . "\n"; $start = microtime(TRUE); md5(json_encode($a)); echo "md5(json_encode..:" . microtime(TRUE)-$start . "\n";

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)
7.3.10.0000.01116.80
7.3.00.0000.01116.84
7.2.130.0000.01516.97
7.2.120.0000.01216.81
7.2.110.0030.01316.69
7.2.100.0000.01016.76
7.2.90.0030.01016.86
7.2.80.0060.00917.05
7.2.70.0000.01516.94
7.2.60.0110.00416.84
7.2.50.0000.01116.68
7.2.40.0070.00716.91
7.2.30.0060.00917.00
7.2.20.0000.01017.05
7.2.10.0060.00716.85
7.2.00.0020.01218.30
7.1.250.0080.00315.93
7.1.70.0060.00317.19
7.1.60.0070.01719.27
7.1.50.0030.01916.80
7.1.00.0100.07322.30
7.0.200.0000.00816.87
7.0.90.0100.08320.31
7.0.80.0100.08320.45
7.0.70.0070.08720.35
7.0.60.0130.07320.34
7.0.50.0570.07720.66
7.0.40.0130.08320.04
7.0.30.0000.05320.16
7.0.20.0100.04720.18
7.0.10.0030.08720.14
7.0.00.0070.08720.09
5.6.280.0000.04023.39
5.6.240.0170.07723.21
5.6.230.0030.06723.16
5.6.220.0100.05723.13
5.6.210.0070.05323.18
5.6.200.0130.08323.59
5.6.190.0100.08723.62
5.6.180.0030.05023.71
5.6.170.0070.04723.61
5.6.160.0130.05323.70
5.6.150.0130.08023.67
5.6.140.0030.05023.66
5.6.130.0030.05723.66
5.6.120.0070.05023.70
5.6.110.0100.07323.61
5.6.100.0070.08723.69
5.6.90.0100.08723.58
5.6.80.0200.06322.97
5.6.70.0030.09022.95
5.6.60.0070.08322.95
5.6.50.0070.04723.13
5.6.40.0130.07023.09
5.6.30.0070.07022.88
5.6.20.0170.07023.01
5.6.10.0100.05023.06
5.6.00.0070.08322.95
5.5.380.0200.08322.97
5.5.370.0100.08023.07
5.5.360.0130.09022.95
5.5.350.0070.09022.91
5.5.340.0100.08723.49
5.5.330.0030.04723.30
5.5.320.0070.04323.40
5.5.310.0070.07323.33
5.5.300.0170.08723.44
5.5.290.0070.05323.37
5.5.280.0030.07023.36
5.5.270.0100.08323.39
5.5.260.0130.08023.36
5.5.250.0100.04323.21
5.5.240.0070.08322.75
5.5.230.0070.06022.88
5.5.220.0170.07322.83
5.5.210.0030.04322.85
5.5.200.0130.07022.76
5.5.190.0030.07722.66
5.5.180.0030.08022.70
5.5.160.0100.08022.72
5.5.150.0170.06022.77
5.5.140.0130.08022.82
5.5.130.0100.08322.81
5.5.120.0130.08022.80
5.5.110.0000.06022.55
5.5.100.0100.04022.73
5.5.90.0130.07722.58
5.5.80.0130.07022.68
5.5.70.0000.08722.73
5.5.60.0100.08022.67
5.5.50.0170.07722.54
5.5.40.0070.04022.62
5.5.30.0070.08022.71
5.5.20.0030.05722.66
5.5.10.0070.08722.70
5.5.00.0130.06722.60
5.4.450.0100.06721.91
5.4.440.0130.07721.94
5.4.430.0070.05721.97
5.4.420.0070.04721.77
5.4.410.0100.05021.65
5.4.400.0200.03321.54
5.4.390.0100.07321.37
5.4.380.0030.05321.54
5.4.370.0030.04721.46
5.4.360.0130.08021.55
5.4.350.0000.04721.55
5.4.340.0100.07321.50
5.4.320.0100.08321.29
5.4.310.0070.05721.35
5.4.300.0030.05321.32
5.4.290.0070.04021.46
5.4.280.0130.07321.49
5.4.270.0130.07721.65
5.4.260.0070.07721.29
5.4.250.0170.07321.54
5.4.240.0100.06321.48
5.4.230.0130.07721.46
5.4.220.0030.08321.49
5.4.210.0030.05321.59
5.4.200.0170.07721.49
5.4.190.0030.07721.61
5.4.180.0130.07021.45
5.4.170.0130.07721.46
5.4.160.0000.06721.52
5.4.150.0000.09021.27
5.4.140.0200.06718.83
5.4.130.0130.07318.80
5.4.120.0070.07718.84
5.4.110.0130.04018.81
5.4.100.0130.06318.71
5.4.90.0030.06318.85
5.4.80.0130.07318.82
5.4.70.0100.07018.77
5.4.60.0230.06718.79
5.4.50.0100.06718.78
5.4.40.0130.07018.78
5.4.30.0070.05318.73
5.4.20.0030.07318.77
5.4.10.0070.07718.71
5.4.00.0000.05318.31

preferences:
25.87 ms | 401 KiB | 5 Q