3v4l.org

run code in 300+ PHP versions simultaneously
<?php class hi { function __wakeup() { echo 'haha'; } function __destruct() { echo 'hi'; } } $foo = 'O:2:"hi":a:{}'; $data = unserialize($foo); var_dump($data);

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.0190.00016.79
8.3.60.0100.01018.18
8.3.50.0090.01121.99
8.3.40.0000.01518.67
8.3.30.0070.00718.92
8.3.20.0040.00420.21
8.3.10.0000.00822.11
8.3.00.0050.00322.47
8.2.190.0070.00716.75
8.2.180.0140.00416.75
8.2.170.0040.01122.96
8.2.160.0070.00720.77
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.36
8.2.110.0060.00322.02
8.2.100.0060.00617.72
8.2.90.0050.00319.27
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0060.00318.04
8.2.50.0030.00518.07
8.2.40.0000.00818.03
8.2.30.0070.00318.07
8.2.20.0070.00017.61
8.2.10.0070.00017.76
8.2.00.0040.00417.70
8.1.280.0100.00725.92
8.1.270.0080.00022.27
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0040.00719.10
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0070.00317.23
8.1.190.0000.00817.51
8.1.180.0050.00218.61
8.1.170.0000.00918.50
8.1.160.0000.00721.89
8.1.150.0040.00418.50
8.1.140.0040.00417.45
8.1.130.0090.00017.82
8.1.120.0040.00417.33
8.1.110.0000.00717.28
8.1.100.0000.00717.42
8.1.90.0030.00317.41
8.1.80.0040.00417.31
8.1.70.0070.00017.32
8.1.60.0070.00417.61
8.1.50.0040.00417.50
8.1.40.0060.00317.57
8.1.30.0000.00817.61
8.1.20.0000.00817.56
8.1.10.0020.00517.37
8.1.00.0030.00617.46
8.0.300.0000.00818.77
8.0.290.0000.00717.05
8.0.280.0030.00318.37
8.0.270.0030.00317.18
8.0.260.0040.00416.78
8.0.250.0000.00716.83
8.0.240.0070.00316.97
8.0.230.0030.00316.88
8.0.220.0030.00316.85
8.0.210.0050.00316.95
8.0.200.0000.00616.93
8.0.190.0040.00417.01
8.0.180.0040.00716.87
8.0.170.0040.00416.82
8.0.160.0000.00716.95
8.0.150.0050.00216.83
8.0.140.0070.00016.92
8.0.130.0000.00813.36
8.0.120.0050.00316.87
8.0.110.0040.00416.76
8.0.100.0030.00516.78
8.0.90.0040.00416.77
8.0.80.0070.01016.96
8.0.70.0000.00716.89
8.0.60.0070.00016.77
8.0.50.0040.00416.83
8.0.30.0120.00917.15
8.0.20.0110.00617.40
8.0.10.0000.00817.08
8.0.00.0120.00616.88
7.4.330.0000.00515.05
7.4.320.0000.00616.55
7.4.300.0000.00716.54
7.4.290.0000.00816.50
7.4.280.0030.00316.58
7.4.270.0060.00316.50
7.4.260.0030.00516.47
7.4.250.0060.00316.61
7.4.240.0040.00416.61
7.4.230.0030.00316.36
7.4.220.0190.00016.63
7.4.210.0060.01116.53
7.4.200.0090.00016.70
7.4.190.0040.00316.65
7.4.160.0030.01216.33
7.4.150.0090.00917.40
7.4.140.0160.00817.86
7.4.130.0130.00516.48
7.4.120.0130.00516.70
7.4.110.0100.01416.58
7.4.100.0090.01216.63
7.4.90.0100.01016.45
7.4.80.0130.00419.39
7.4.70.0090.00616.55
7.4.60.0250.00316.66
7.4.50.0080.00016.61
7.4.40.0100.00322.77
7.4.30.0090.00616.51
7.4.00.0110.00415.00
7.3.330.0020.00213.18
7.3.320.0050.00013.13
7.3.310.0030.00316.29
7.3.300.0030.00316.32
7.3.290.0060.01016.30
7.3.280.0090.01016.31
7.3.270.0130.01017.40
7.3.260.0130.00316.24
7.3.250.0070.01216.27
7.3.240.0120.00916.55
7.3.230.0060.01216.39
7.3.210.0100.00616.37
7.3.200.0030.01519.39
7.3.190.0100.01016.34
7.3.180.0030.01216.45
7.3.170.0130.00616.56
7.3.160.0060.01016.48
7.3.120.0060.01014.66
7.3.10.0110.00716.46
7.3.00.0120.00416.45
7.2.330.0090.00916.41
7.2.320.0100.01216.65
7.2.310.0130.00316.64
7.2.300.0040.01316.38
7.2.290.0100.00716.45
7.2.130.0070.00816.80
7.2.120.0120.00516.75
7.2.110.0030.00916.68
7.2.100.0050.01016.67
7.2.90.0070.00616.73
7.2.80.0090.00316.95
7.2.70.0090.00716.64
7.2.60.0030.00916.65
7.2.50.0060.00916.86
7.2.40.0090.00716.78
7.2.30.0030.01016.57
7.2.20.0070.00416.57
7.2.10.0110.00816.59
7.2.00.0080.00817.75
7.1.250.0050.00815.48
7.1.200.0100.00315.49
7.1.100.0030.01318.18
7.1.70.0030.00616.91
7.1.60.0000.02519.82
7.1.50.0070.01416.58
7.1.00.0000.08022.30
7.0.200.0070.00316.73
7.0.140.0070.06722.00
7.0.60.0070.07720.02
7.0.50.0000.06017.96
7.0.40.0030.07320.11
7.0.30.0370.04720.17
7.0.20.0200.03720.33
7.0.10.0130.04320.30
7.0.00.0070.04320.33
5.6.280.0100.06721.11
5.6.210.0030.04720.63
5.6.200.0070.06318.16
5.6.190.0100.07720.60
5.6.180.3470.04020.48
5.6.170.0230.05320.56
5.6.160.0070.05020.47
5.6.150.0070.06018.28
5.6.140.0100.03318.25
5.6.130.0030.05018.25
5.6.120.0170.07321.02
5.6.110.0130.03721.09
5.6.100.0030.05021.01
5.6.90.0070.08320.95
5.6.80.0070.07020.44
5.6.70.3470.04020.48
5.5.350.0070.08020.41
5.5.340.0030.04718.04
5.5.330.0130.06720.28
5.5.320.0270.03720.35
5.5.310.0270.06720.27
5.5.300.0070.05717.91
5.5.290.0100.04317.95
5.5.280.0100.06020.87
5.5.270.0070.07020.76
5.5.260.0130.07320.89
5.5.250.0100.06320.46
5.5.240.0130.07020.07
5.4.450.0300.05019.34
5.4.440.0570.05319.16
5.4.430.0100.05319.51
5.4.420.0170.05019.52
5.4.410.0200.04719.32
5.4.400.0870.00018.52
5.4.390.0870.00018.50
5.4.380.0400.04318.52
5.4.370.0470.06018.70
5.4.360.0330.05018.79
5.4.350.0430.04718.56
5.4.340.0230.05318.56
5.4.320.0050.03712.50
5.4.310.0090.04512.50
5.4.300.0040.03812.50
5.4.290.0100.04112.49
5.4.280.0040.04312.39
5.4.270.0040.03712.39
5.4.260.0170.06718.91
5.4.250.0230.06719.10
5.4.240.0070.07318.79
5.4.230.0200.06718.64
5.4.220.0070.05718.99
5.4.210.0100.05718.90
5.4.200.0070.05318.94
5.4.190.0170.06718.74
5.4.180.0170.06718.74
5.4.170.0070.05318.76
5.4.160.0100.06018.93
5.4.150.0170.06718.99
5.4.140.0070.05316.30
5.4.130.0200.04016.54
5.4.120.0070.04716.32
5.4.110.0070.06316.65
5.4.100.0070.04716.57
5.4.90.0030.05016.43
5.4.80.0130.04016.64
5.4.70.0170.06316.55
5.4.60.0100.07016.55
5.4.50.0100.05016.46
5.4.40.0100.04716.51
5.4.30.0170.05316.46
5.4.20.0130.04016.52
5.4.10.0270.05016.47
5.4.00.0130.06315.94
5.3.290.0070.04412.80
5.3.280.0100.06014.75
5.3.270.0030.05714.51
5.3.260.0230.04014.61
5.3.250.0070.07314.44
5.3.240.0070.05014.69
5.3.230.0130.06714.73
5.3.220.0070.05014.56
5.3.210.0030.05314.56
5.3.200.0070.06714.63
5.3.190.0000.05714.47
5.3.180.0070.05714.64
5.3.170.0000.05714.63
5.3.160.0100.06014.74
5.3.150.0030.06014.70
5.3.140.0100.04714.74
5.3.130.0100.05014.77
5.3.120.0130.05314.63
5.3.110.0070.06714.65
5.3.100.0000.07014.25
5.3.90.0230.03314.15
5.3.80.0070.05314.18
5.3.70.0070.05014.21
5.3.60.0200.05314.00
5.3.50.0130.04014.05
5.3.40.0030.07713.95
5.3.30.0000.05313.91
5.3.20.0070.06313.79
5.3.10.0070.06313.88
5.3.00.0070.04713.82
5.2.170.0000.06011.38
5.2.160.0100.04311.33
5.2.150.0030.05311.15
5.2.140.0070.04311.15
5.2.130.0070.04010.93
5.2.120.0030.04011.20
5.2.110.0000.04311.20
5.2.100.0000.04311.16
5.2.90.0030.05011.08
5.2.80.0030.04311.15
5.2.70.0130.04711.07
5.2.60.0100.03310.88
5.2.50.0100.05011.02
5.2.40.0100.03311.17
5.2.30.0130.03011.19
5.2.20.0030.04711.02
5.2.10.0100.05010.93
5.2.00.0030.04010.70
5.1.60.0070.05010.18
5.1.50.0070.03010.07
5.1.40.0070.0339.98
5.1.30.0000.04710.41
5.1.20.0070.04010.45
5.1.10.0030.04010.23
5.1.00.0030.0439.91
5.0.50.0100.0238.54
5.0.40.0000.0308.42
5.0.30.0030.0538.43
5.0.20.0000.0308.26
5.0.10.0100.0278.14
5.0.00.0000.0438.08
4.4.90.0030.0307.42
4.4.80.0070.0277.42
4.4.70.0000.0337.42
4.4.60.0030.0237.42
4.4.50.0030.0237.42
4.4.40.0000.0377.42
4.4.30.0030.0207.42
4.4.20.0000.0337.42
4.4.10.0130.0207.42
4.4.00.0030.0407.42
4.3.110.0070.0277.42
4.3.100.0100.0277.42
4.3.90.0000.0237.42
4.3.80.0000.0337.42
4.3.70.0030.0207.42
4.3.60.0070.0237.42
4.3.50.0070.0177.42
4.3.40.0000.0337.42
4.3.30.0070.0237.42
4.3.20.0000.0237.42
4.3.10.0030.0207.42
4.3.00.0130.0207.29

preferences:
46.52 ms | 401 KiB | 5 Q