3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __wakeup() { print "[-] Wakeup method called!\n"; } function __destruct() { print "[-] Destruct method called!\n"; var_dump($this); } } $normal = 'O:3:"Foo":1:{s:1:"x";s:1:"y";}'; $broken = 'O:3:"Foo":2:{s:1:"x";s:1:"y";}'; unserialize($normal); unserialize($broken);

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.60.0150.00418.43
8.3.50.0100.01018.14
8.3.40.0180.00018.75
8.3.30.0210.00721.88
8.3.20.0110.00622.32
8.3.10.0120.00322.31
8.3.00.0160.00523.09
8.2.180.0130.01025.92
8.2.170.0040.01122.96
8.2.160.0230.00522.96
8.2.150.0110.01123.64
8.2.140.0090.00723.39
8.2.130.0090.00723.76
8.2.120.0110.00522.45
8.2.110.0090.00822.35
8.2.100.0120.00621.70
8.2.90.0160.01021.66
8.2.80.0110.00621.88
8.2.70.0170.00721.60
8.2.60.0160.00621.63
8.2.50.0130.00721.75
8.2.40.0150.00622.79
8.2.30.0120.00722.36
8.2.20.0180.00321.71
8.2.10.0110.01121.74
8.2.00.0140.00621.76
8.1.280.0030.01025.92
8.1.270.0090.00423.21
8.1.260.0090.00623.81
8.1.250.0110.00424.25
8.1.240.0170.00323.19
8.1.230.0150.00323.21
8.1.220.0140.00621.66
8.1.210.0140.00521.92
8.1.200.0150.00521.53
8.1.190.0120.00621.50
8.1.180.0140.00721.75
8.1.170.0120.00821.85
8.1.160.0120.00821.94
8.1.150.0120.00622.31
8.1.140.0140.00522.08
8.1.130.0120.00821.54
8.1.120.0130.00521.57
8.1.110.0150.00721.54
8.1.100.0090.00921.54
8.1.90.0120.00721.57
8.1.80.0130.00421.58
8.1.70.0110.00721.56
8.1.60.0160.00621.63
8.1.50.0140.00621.58
8.1.40.0160.00521.57
8.1.30.0100.00821.65
8.1.20.0150.00321.64
8.1.10.0170.00521.57
8.1.00.0160.00421.56
8.0.300.0090.00721.92
8.0.290.0140.00821.44
8.0.280.0200.00521.80
8.0.270.0150.00621.43
8.0.260.0170.00721.45
8.0.250.0180.00321.45
8.0.240.0180.00621.45
8.0.230.0140.00521.45
8.0.220.0180.00421.41
8.0.210.0180.00521.45
8.0.200.0180.00421.43
8.0.190.0200.00621.48
8.0.180.0130.00521.45
8.0.170.0150.00921.42
8.0.160.0160.00621.44
8.0.150.0200.00421.43
8.0.140.0170.00721.41
8.0.130.0140.00720.55
8.0.120.0170.00821.45
8.0.110.0180.00721.44
8.0.100.0150.00621.40
8.0.90.0180.00321.45
8.0.80.0210.00621.43
8.0.70.0090.00521.40
8.0.60.0170.00521.46
8.0.50.0130.01121.47
8.0.30.0080.00920.60
8.0.20.0140.01019.79
8.0.10.0200.00321.45
8.0.00.0140.00720.44
7.4.330.0130.00521.11
7.4.320.0130.00621.33
7.4.300.0210.00621.35
7.4.290.0210.00721.38
7.4.280.0250.00621.31
7.4.270.0230.00921.38
7.4.260.0210.00621.32
7.4.250.0200.00721.35
7.4.240.0220.00521.39
7.4.230.0200.00721.33
7.4.220.0160.01421.33
7.4.210.0230.00621.35
7.4.200.0170.00721.30
7.4.190.0270.00722.96
7.4.180.0280.00622.96
7.4.160.0220.00520.38
7.4.150.0230.00821.57
7.4.140.0160.00920.41
7.4.130.0150.01019.26
7.4.120.0180.00819.26
7.4.110.0180.00820.41
7.4.100.0220.00520.34
7.4.90.0200.00920.36
7.4.80.0170.01020.99
7.4.70.0200.00820.41
7.4.60.0210.00820.38
7.4.50.0210.00720.35
7.4.40.0190.00820.39
7.4.30.0200.00620.34
7.4.20.0230.00421.31
7.4.10.0220.00721.31
7.4.00.0210.00520.07
7.3.330.0170.00820.54
7.3.320.0210.00620.54
7.3.310.0210.00821.31
7.3.300.0180.00721.26
7.3.290.0140.00819.62
7.3.280.0190.00519.62
7.3.270.0260.00421.57
7.3.260.0210.00720.38
7.3.250.0190.01019.64
7.3.240.0210.00719.70
7.3.230.0210.00720.36
7.3.220.0240.00821.30
7.3.210.0200.00720.30
7.3.200.0190.00620.35
7.3.190.0210.00720.26
7.3.180.0190.00720.28
7.3.170.0160.01120.34
7.3.160.0200.00620.29
7.3.150.0210.00621.29
7.3.140.0240.00621.31
7.3.130.0230.00621.33
7.3.120.0250.00421.24
7.3.110.0200.00821.30
7.3.100.0200.00821.36
7.3.90.0170.00921.32
7.3.80.0200.00821.35
7.3.70.0190.00521.28
7.3.60.0220.00521.32
7.3.50.0220.00721.32
7.3.40.0260.00721.30
7.3.30.0240.01021.32
7.3.20.0370.00520.02
7.3.10.0340.00719.95
7.3.00.0360.00619.95
7.2.340.0250.01021.36
7.2.330.0210.00920.43
7.2.320.0230.00820.36
7.2.310.0220.01020.33
7.2.300.0240.00720.33
7.2.290.0240.00520.38
7.2.280.0210.01221.33
7.2.270.0250.00821.38
7.2.260.0250.00721.35
7.2.250.0220.00621.39
7.2.240.0240.00721.34
7.2.230.0190.01121.28
7.2.220.0240.00621.37
7.2.210.0210.01021.33
7.2.200.0280.00221.36
7.2.190.0240.00821.35
7.2.180.0230.01021.31
7.2.170.0240.00721.35
7.2.160.0270.00821.32
7.2.150.0360.00720.04
7.2.140.0300.00720.05
7.2.130.0360.00720.03
7.2.120.0360.00920.08
7.2.110.0310.00820.07
7.2.100.0300.00620.01
7.2.90.0340.00720.05
7.2.80.0290.00920.05
7.2.70.0340.01020.05
7.2.60.0310.00919.47
7.2.50.0550.00620.03
7.2.40.0300.01020.07
7.2.30.0400.01020.07
7.2.20.0310.00919.99
7.2.10.0380.01020.03
7.2.00.0200.00819.94
7.1.330.0220.00621.12
7.1.320.0230.00621.09
7.1.310.0220.00921.11
7.1.300.0190.00721.08
7.1.290.0250.00521.11
7.1.280.0270.00421.11
7.1.270.0260.00521.16
7.1.260.0220.00621.06
7.1.250.0450.00919.64
7.1.240.0350.00819.61
7.1.230.0290.00819.62
7.1.220.0280.01119.61
7.1.210.0340.00619.58
7.1.200.0260.00718.97
7.1.190.0420.00719.63
7.1.180.0330.00819.65
7.1.170.0310.00519.59
7.1.160.0370.00619.59
7.1.150.0310.00819.55
7.1.140.0310.00719.66
7.1.130.0330.00619.60
7.1.120.0290.00919.59
7.1.110.0290.00619.68
7.1.100.0300.00619.36
7.1.90.0300.00919.66
7.1.80.0330.00419.59
7.1.70.0300.00619.16
7.1.60.0240.00619.18
7.1.50.0360.00919.21
7.1.40.0380.00919.12
7.1.30.0520.00619.17
7.1.20.0350.00419.07
7.1.10.0240.00819.08
7.1.00.0200.00619.18
7.0.330.0310.00819.46
7.0.320.0320.00619.43
7.0.310.0330.00819.49
7.0.300.0340.00919.42
7.0.290.0300.00919.42
7.0.280.0300.00819.45
7.0.270.0330.00519.42
7.0.260.0270.00719.39
7.0.250.0310.00819.42
7.0.240.0280.00819.40
7.0.230.0300.00719.45
7.0.220.0300.00719.50
7.0.210.0300.00819.41
7.0.200.0280.01019.02
7.0.190.0290.00618.98
7.0.180.0290.00618.88
7.0.170.0270.00719.01
7.0.160.0250.00918.99
7.0.150.0490.00618.91
7.0.140.0340.00618.97
7.0.130.0240.00818.91
7.0.120.0280.00818.93
7.0.110.0260.00618.89
7.0.100.0220.00718.86
7.0.90.0220.00618.88
7.0.80.0240.00718.95
7.0.70.0240.00718.84
7.0.60.0200.00618.88
7.0.50.0240.00618.98
7.0.40.0230.00718.74
7.0.30.0220.00218.76
7.0.20.0270.00718.79
7.0.10.0270.00618.72
7.0.00.0240.00718.77
5.6.400.0210.00821.14
5.6.390.0200.00621.24
5.6.380.0180.00619.73
5.6.370.0220.00621.13
5.6.360.0190.00921.14
5.6.350.0190.00821.19
5.6.340.0210.00721.23
5.6.330.0140.01221.17
5.6.320.0230.00621.21
5.6.310.0220.00521.15
5.6.300.0210.00621.15
5.6.290.0230.00521.16
5.6.280.0240.00621.23
5.6.270.0220.00521.23
5.6.260.0270.00421.18
5.6.250.0230.00621.23
5.6.240.0220.00621.20
5.6.230.0200.00621.20
5.6.220.0260.00621.16
5.6.210.0230.00721.17
5.6.200.0170.00519.42
5.6.190.0190.00721.22
5.6.180.0220.00421.24
5.6.170.0180.00721.15
5.6.160.0200.00721.18
5.6.150.0200.00721.22
5.6.140.0210.00821.18
5.6.130.0190.00721.23
5.6.120.0180.01021.15
5.6.110.0200.01021.19
5.6.100.0210.00721.15
5.6.90.0200.00821.19
5.6.80.0170.00921.17
5.6.70.0200.00721.17
5.6.60.0210.00721.15
5.6.50.0230.00821.16
5.6.40.0180.01121.20
5.6.30.0210.01021.16
5.6.20.0180.00821.18
5.6.10.0190.00721.16
5.6.00.0210.00621.17

preferences:
72.06 ms | 401 KiB | 5 Q