3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "lol"; $var1 = "a:1:{i:0;a:1:{s:6:'Marque';s:6:'Anaïs';}}"; if(isSerialized($var1) === true){ unserialize($var1); echo "OK"; } else { echo "KO"; } function isSerialized($str) { return ($str == serialize(false) || @unserialize($str) !== false); }
based on ZY7ad

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.00.0110.00816.41
7.2.130.0100.00716.75
7.2.120.0070.00716.43
7.2.110.0070.01016.81
7.2.100.0130.00716.64
7.2.90.0030.01316.81
7.2.80.0100.00717.08
7.2.70.0100.01016.44
7.2.60.0160.00616.68
7.2.50.0140.00416.73
7.2.40.0110.00416.64
7.2.30.0090.01216.61
7.2.20.0110.00716.55
7.2.10.0040.01216.76
7.2.00.0060.01018.07
7.1.250.0100.00715.67
7.1.240.0090.00915.85
7.1.230.0100.00315.68
7.1.220.0100.00615.73
7.1.210.0130.00315.67
7.1.200.0090.00515.73
7.1.190.0080.00815.59
7.1.180.0120.00315.82
7.1.170.0060.00915.71
7.1.160.0060.00915.54
7.1.150.0100.00915.57
7.1.140.0090.00315.57
7.1.130.0070.01015.68
7.1.120.0090.00415.32
7.1.110.0000.01415.74
7.1.100.0060.00616.85
7.1.90.0130.00615.52
7.1.80.0070.01115.48
7.1.70.0050.00716.21
7.1.60.0100.01117.62
7.1.50.0080.01116.14
7.1.40.0170.00015.66
7.1.30.0040.00815.56
7.1.20.0070.00715.70
7.1.10.0100.00615.68
7.1.00.0100.03819.14
7.0.330.0110.00415.28
7.0.320.0130.00315.13
7.0.310.0130.00315.29
7.0.300.0130.00314.86
7.0.290.0060.01015.13
7.0.280.0090.00615.19
7.0.270.0090.00315.08
7.0.260.0110.00714.82
7.0.250.0120.00315.05
7.0.240.0110.00615.30
7.0.230.0070.00714.91
7.0.220.0030.00615.16
7.0.210.0030.01015.23
7.0.200.0050.00315.81
7.0.190.0070.01015.14
7.0.180.0070.00714.97
7.0.170.0060.00615.41
7.0.160.0130.00015.37
7.0.150.0110.00715.21
7.0.140.0060.02018.76
7.0.130.0110.00415.44
7.0.120.0090.00615.45
7.0.110.0100.00615.23
7.0.100.0100.00715.20
7.0.90.0110.00415.13
7.0.80.0120.00615.43
7.0.70.0030.01015.32
7.0.60.0130.04017.66
7.0.50.0050.02516.66
7.0.40.0070.04516.82
7.0.30.0110.02816.70
7.0.20.0080.04116.81
7.0.10.0120.02516.69
7.0.00.0070.03216.65
5.6.380.0030.00914.10
5.6.370.0040.00714.54
5.6.360.0090.00314.22
5.6.350.0060.00314.39
5.6.340.0070.00314.10
5.6.330.0000.01314.43
5.6.320.0110.00414.16
5.6.310.0040.01114.41
5.6.300.0000.01114.31
5.6.290.0140.00313.67
5.6.280.0060.03917.66
5.6.270.0110.00414.01
5.6.260.0000.01314.29
5.6.250.0100.00014.05
5.6.240.0140.00014.14
5.6.230.0030.01013.99
5.6.220.0100.00314.27
5.6.210.0060.04617.53
5.6.200.0030.02816.37
5.6.190.0080.04517.43
5.6.180.0180.03517.41
5.6.170.0150.02517.45
5.6.160.0030.02817.38
5.6.150.0020.02916.41
5.6.140.0070.04216.26
5.6.130.0060.03316.07
5.6.120.0070.04717.81
5.6.110.0100.03717.73
5.6.100.0100.03917.67
5.6.90.0100.04317.55
5.6.80.0020.04817.31
5.6.70.0050.00813.85
5.6.60.0000.00813.95
5.6.50.0110.00413.96
5.6.40.0150.00514.15
5.6.30.0090.00914.00
5.6.20.0100.01014.14
5.6.10.0160.00914.47
5.6.00.0120.00914.36
5.5.380.0030.00311.32
5.5.370.0040.00811.02
5.5.360.0060.00011.44
5.5.350.0190.04215.98
5.5.340.0050.04314.60
5.5.330.0070.04215.77
5.5.320.0110.04015.80
5.5.310.0150.03715.66
5.5.300.0070.02014.59
5.5.290.0030.02714.61
5.5.280.0020.05315.99
5.5.270.0070.03815.80
5.5.260.0090.04215.87
5.5.250.0080.03315.79
5.5.240.0040.02615.59
5.5.230.0120.00310.91
5.5.220.0100.00310.90
5.5.210.0150.00011.17
5.5.200.0120.00011.21
5.5.190.0120.00310.98
5.5.180.0100.00511.14
5.5.170.0040.01311.10
5.5.160.0090.00310.90
5.5.150.0050.00811.13
5.5.140.0030.01010.90
5.5.130.0050.00510.96
5.5.120.0040.00810.90
5.5.110.0080.00511.16
5.5.100.0040.00811.03
5.5.90.0050.00511.02
5.5.80.0070.00311.15
5.5.70.0050.00310.90
5.5.60.0080.00010.90
5.5.50.0060.00610.90
5.5.40.0030.01010.91
5.5.30.0060.00310.90
5.5.20.0030.00710.90
5.5.10.0000.00811.07
5.5.00.0050.00511.07
5.4.450.0110.03215.26
5.4.440.0470.03715.21
5.4.430.0060.03115.24
5.4.420.0570.02715.17
5.4.410.0450.03014.97
5.4.400.0080.03014.97
5.4.390.0440.03114.76
5.4.380.0370.03514.82
5.4.370.0330.04214.73
5.4.360.0430.03314.80
5.4.350.0470.04014.90
5.4.340.0500.03514.90
5.4.330.0060.00011.11
5.4.320.0530.03814.72
5.4.310.0480.04014.87
5.4.300.0480.03514.92
5.4.290.0520.03214.70
5.4.280.0300.03214.79
5.4.270.0330.03214.70
5.4.260.0300.03514.76
5.4.250.0450.02714.88
5.4.240.0500.03114.73
5.4.230.0410.03514.80
5.4.220.0560.03314.68
5.4.210.0550.02714.81
5.4.200.0380.03713.73
5.4.190.0500.03014.84
5.4.180.0430.03214.79
5.4.170.0400.03814.83
5.4.160.0430.03514.67
5.4.150.0350.04114.70
5.4.140.0370.03413.57
5.4.130.0330.02813.54
5.4.120.0360.03513.62
5.4.110.0410.02813.55
5.4.100.0400.03813.69
5.4.90.0530.03213.55
5.4.80.0470.03213.69
5.4.70.0460.03713.66
5.4.60.0520.02813.71
5.4.50.0370.03913.72
5.4.40.0430.03513.57
5.4.30.0470.03313.67
5.4.20.0470.02913.66
5.4.10.0330.03013.64
5.4.00.0220.03513.32
5.3.290.0490.03112.80
5.3.280.0380.03312.75
5.3.270.0370.03712.85
5.3.260.0430.03312.78
5.3.250.0400.03412.81
5.3.240.0570.03212.84
5.3.230.0320.03212.86
5.3.220.0420.03712.83
5.3.210.0320.03512.76
5.3.200.0370.03512.83
5.3.190.0490.02812.80
5.3.180.0480.03812.74
5.3.170.0500.04212.79
5.3.160.0430.02812.84
5.3.150.0520.03612.75
5.3.140.0600.02812.82
5.3.130.0560.03412.77
5.3.120.0620.03512.72
5.3.110.0420.03512.79
5.3.100.0550.03312.57
5.3.90.0400.04012.57
5.3.80.0380.03412.51
5.3.70.0350.02712.49
5.3.60.0350.03412.52
5.3.50.0520.03012.49
5.3.40.0550.02612.51
5.3.30.0410.02812.43
5.3.20.0360.02812.40
5.3.10.0420.02612.27
5.3.00.0420.03012.37
5.2.170.0420.02211.04
5.2.160.0330.02511.08
5.2.150.0320.02311.04
5.2.140.0350.02811.04
5.2.130.0360.03011.02
5.2.120.0330.03111.05
5.2.110.0410.02310.99
5.2.100.0300.02311.07
5.2.90.0420.02710.99
5.2.80.0450.02311.02
5.2.70.0300.03111.05
5.2.60.0350.02711.09
5.2.50.0350.02510.98
5.2.40.0250.02811.01
5.2.30.0310.02510.99
5.2.20.0370.02311.02
5.2.10.0330.02210.89
5.2.00.0330.02310.86
5.1.60.0280.03010.47
5.1.50.0330.02710.51
5.1.40.0360.02310.46
5.1.30.0300.02310.61
5.1.20.0320.02810.69
5.1.10.0320.02110.58
5.1.00.0320.02310.55
5.0.50.0230.0129.78
5.0.40.0170.0159.72
5.0.30.0220.0239.61
5.0.20.0170.0159.56
5.0.10.0180.0149.59
5.0.00.0170.0239.60
4.4.90.0130.0148.46
4.4.80.0210.0108.39
4.4.70.0180.0128.38
4.4.60.0160.0148.41
4.4.50.0190.0158.45
4.4.40.0160.0238.42
4.4.30.0130.0158.44
4.4.20.0200.0138.43
4.4.10.0180.0128.43
4.4.00.0180.0208.41
4.3.110.0170.0158.41
4.3.100.0200.0138.40
4.3.90.0190.0088.35
4.3.80.0180.0208.35
4.3.70.0180.0178.34
4.3.60.0200.0108.36
4.3.50.0200.0128.38
4.3.40.0150.0238.34
4.3.30.0100.0137.78
4.3.20.0130.0107.76
4.3.10.0110.0137.74
4.3.00.0030.01810.13