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.4.10.0030.01416.93
7.4.00.0030.01617.12
7.3.130.0110.00316.82
7.3.120.0050.01216.64
7.3.110.0070.01016.74
7.3.100.0090.00616.86
7.3.90.0000.01316.78
7.3.80.0100.01016.93
7.3.70.0030.01316.71
7.3.60.0070.01016.82
7.3.50.0060.01016.95
7.3.40.0090.00616.76
7.3.30.0140.00316.64
7.3.20.0070.01018.06
7.3.10.0100.00318.07
7.3.00.0070.01017.98
7.2.260.0030.01717.02
7.2.250.0040.01617.07
7.2.240.0100.00317.07
7.2.230.0070.00716.82
7.2.220.0130.00317.12
7.2.210.0070.01117.02
7.2.200.0100.01017.19
7.2.190.0100.01016.91
7.2.180.0080.00416.86
7.2.170.0120.00317.03
7.2.160.0090.00616.92
7.2.150.0030.01018.36
7.2.140.0060.00918.44
7.2.130.0100.01018.26
7.2.120.0160.00318.26
7.2.110.0030.01318.18
7.2.100.0040.01418.27
7.2.90.0100.01018.37
7.2.80.0040.01518.32
7.2.70.0030.01218.33
7.2.60.0030.01518.32
7.2.50.0070.01018.36
7.2.40.0060.00918.53
7.2.30.0030.01218.32
7.2.20.0030.01018.44
7.2.10.0120.00618.16
7.2.00.0030.01318.81
7.1.330.0090.00917.29
7.1.320.0060.01017.36
7.1.310.0030.01117.33
7.1.300.0100.01017.40
7.1.290.0070.00717.36
7.1.280.0000.01817.32
7.1.270.0100.00617.43
7.1.260.0000.01617.25
7.1.250.0080.01217.22
7.1.240.0120.00317.23
7.1.230.0070.01117.27
7.1.220.0070.00717.37
7.1.210.0060.00617.19
7.1.200.0040.01117.16
7.1.190.0060.00917.07
7.1.180.0060.01417.34
7.1.170.0030.01517.16
7.1.160.0070.00717.28
7.1.150.0060.00617.00
7.1.140.0040.00817.18
7.1.130.0120.00617.32
7.1.120.0060.00617.25
7.1.110.0060.01017.05
7.1.100.0070.01017.25
7.1.90.0040.01117.22
7.1.80.0060.01317.16
7.1.70.0050.00917.17
7.1.60.0090.01218.35
7.1.50.0120.01326.04
7.1.40.0100.01017.40
7.1.30.0050.00817.23
7.1.20.0060.00617.25
7.1.10.0070.01017.32
7.1.00.0050.04219.80
7.0.330.0100.00717.05
7.0.320.0040.01516.90
7.0.310.0040.01116.87
7.0.300.0030.01017.01
7.0.290.0110.00716.97
7.0.280.0100.00016.85
7.0.270.0030.01016.78
7.0.260.0040.01116.92
7.0.250.0030.01317.15
7.0.240.0040.01516.91
7.0.230.0030.01517.05
7.0.220.0070.01017.11
7.0.210.0060.01216.99
7.0.200.0020.01216.94
7.0.190.0070.01016.88
7.0.180.0120.00816.88
7.0.170.0060.01016.90
7.0.160.0030.00916.99
7.0.150.0110.00816.82
7.0.140.0070.01017.05
7.0.130.0030.00717.17
7.0.120.0060.01117.10
7.0.110.0040.01116.93
7.0.100.0030.00717.00
7.0.90.0270.04718.48
7.0.80.0190.04718.67
7.0.70.0350.04218.61
7.0.60.0380.04218.62
7.0.50.0290.02718.86
7.0.40.0070.04717.46
7.0.30.0070.05017.58
7.0.20.0080.04717.56
7.0.10.0050.04917.53
7.0.00.0030.04017.52
5.6.400.0070.01418.34
5.6.390.0110.01118.48
5.6.380.0130.00318.04
5.6.370.0030.01918.36
5.6.360.0060.01218.54
5.6.350.0130.01018.21
5.6.340.0000.01918.06
5.6.330.0100.01418.31
5.6.320.0000.02018.50
5.6.310.0070.01718.43
5.6.300.0130.01018.48
5.6.290.0090.01318.38
5.6.280.0030.01618.56
5.6.270.0090.01218.12
5.6.260.0070.01418.51
5.6.250.0000.02118.39
5.6.240.0130.04520.68
5.6.230.0080.04820.75
5.6.220.0110.05120.60
5.6.210.0110.04820.60
5.6.200.0090.03121.00
5.6.190.0080.03020.88
5.6.180.0100.04220.94
5.6.170.0080.05221.01
5.6.160.0110.04520.84
5.6.150.0030.03620.89
5.6.140.0150.04020.89
5.6.130.0120.03320.82
5.6.120.0120.04220.90
5.6.110.0080.04821.00
5.6.100.0130.05020.97
5.6.90.0100.04721.12
5.6.80.0100.04020.67
5.6.70.0110.02820.57
5.6.60.0100.04620.54
5.6.50.0080.04720.61
5.6.40.0050.05120.58
5.6.30.0070.04820.63
5.6.20.0080.04520.69
5.6.10.0100.04320.58
5.6.00.0120.03720.67
5.5.380.0080.03820.48
5.5.370.0120.02920.48
5.5.360.0130.04720.56
5.5.350.0050.05220.53
5.5.340.0080.03220.79
5.5.330.0210.04120.74
5.5.320.0150.04520.81
5.5.310.0130.02420.85
5.5.300.0060.04220.69
5.5.290.0100.03720.65
5.5.280.0090.05020.88
5.5.270.0120.05020.72
5.5.260.0180.04820.75
5.5.250.0150.04820.66
5.5.240.0120.03720.42
5.5.230.0130.05120.45
5.5.220.0060.04020.47
5.5.210.0080.02920.42
5.5.200.0070.04820.41
5.5.190.0080.05320.44
5.5.180.0080.04920.29
5.5.170.0030.01918.04
5.5.160.0050.05020.51
5.5.150.0110.04120.51
5.5.140.0120.05020.46
5.5.130.0120.04720.30
5.5.120.0050.03220.50
5.5.110.0070.05120.36
5.5.100.0060.04920.33
5.5.90.0060.04520.29
5.5.80.0080.04620.34
5.5.70.0100.04820.30
5.5.60.0100.04320.36
5.5.50.0070.04520.31
5.5.40.0030.04520.30
5.5.30.0060.04620.33
5.5.20.0070.05020.39
5.5.10.0130.04120.35
5.5.00.0080.04720.36
5.4.450.0090.04218.15
5.4.440.0180.04018.27
5.4.430.0100.04918.37
5.4.420.0070.03418.23
5.4.410.0100.04818.25
5.4.400.0110.04518.12
5.4.390.0160.04318.09
5.4.380.0120.04218.11
5.4.370.0130.04018.12
5.4.360.0090.04718.13
5.4.350.0050.04018.15
5.4.340.0090.03518.19
5.4.330.0140.00914.58
5.4.320.0030.04918.29
5.4.310.0080.04318.24
5.4.300.0050.04818.18
5.4.290.0070.05018.10
5.4.280.0070.04718.18
5.4.270.0050.04218.14
5.4.260.0130.04018.04
5.4.250.0170.03318.04
5.4.240.0120.04618.18
5.4.230.0020.04718.07
5.4.220.0080.04318.05
5.4.210.0030.04618.03
5.4.200.0130.02918.03
5.4.190.0100.04318.09
5.4.180.0090.04518.11
5.4.170.0110.04118.17
5.4.160.0030.05018.18
5.4.150.0120.03218.20
5.4.140.0050.04516.71
5.4.130.0030.05016.70
5.4.120.0090.02616.71
5.4.110.0050.02516.67
5.4.100.0110.04116.79
5.4.90.0060.02516.76
5.4.80.0070.02816.83
5.4.70.0050.03416.85
5.4.60.0130.03616.79
5.4.50.0120.03416.83
5.4.40.0070.02516.78
5.4.30.0020.03716.78
5.4.20.0050.02416.81
5.4.10.0020.03016.74
5.4.00.0050.03016.33

preferences:
38.06 ms | 401 KiB | 5 Q