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.4.130.0140.00819.80
8.4.120.0090.01022.13
8.4.110.0110.00920.34
8.4.100.0140.00618.61
8.4.90.0100.01019.13
8.4.80.0090.00619.13
8.4.70.0140.00819.19
8.4.60.0180.00719.02
8.4.50.0140.00720.74
8.4.40.0150.00618.63
8.4.30.0140.00718.43
8.4.20.0170.00418.67
8.4.10.0170.00418.56
8.3.260.0110.00816.53
8.3.250.0120.00318.94
8.3.240.0140.00516.58
8.3.230.0110.00816.92
8.3.220.0140.00616.46
8.3.210.0130.00717.45
8.3.200.0100.00416.43
8.3.190.0110.00316.62
8.3.180.0130.00616.46
8.3.170.0190.00117.64
8.3.160.0170.00216.76
8.3.150.0130.00518.62
8.3.140.0120.00517.85
8.3.130.0100.00316.68
8.3.120.0130.00218.68
8.3.110.0110.00318.79
8.3.100.0110.00420.36
8.3.90.0100.00522.33
8.3.80.0130.00217.53
8.3.70.0150.00316.65
8.3.60.0160.00417.50
8.3.50.0150.00820.21
8.3.40.0160.00318.12
8.3.30.0190.00720.98
8.3.20.0120.00521.30
8.3.10.0120.00321.30
8.3.00.0140.00522.30
8.2.290.0070.00620.58
8.2.280.0130.00617.61
8.2.270.0120.00217.78
8.2.260.0110.00816.41
8.2.250.0090.00417.65
8.2.240.0100.00416.78
8.2.230.0110.00320.25
8.2.220.0080.00626.93
8.2.210.0110.00221.55
8.2.200.0080.00616.67
8.2.190.0130.00417.40
8.2.180.0140.00621.37
8.2.170.0110.00721.27
8.2.160.0210.00521.94
8.2.150.0120.00922.47
8.2.140.0100.00722.18
8.2.130.0100.00622.52
8.2.120.0130.00521.42
8.2.110.0100.00821.43
8.2.100.0140.00620.87
8.2.90.0170.00921.16
8.2.80.0110.00621.35
8.2.70.0180.00621.14
8.2.60.0170.00721.10
8.2.50.0150.00720.88
8.2.40.0180.00622.06
8.2.30.0130.00721.30
8.2.20.0170.00320.85
8.2.10.0120.00920.83
8.2.00.0150.00520.84
8.1.330.0100.00822.11
8.1.320.0130.00616.14
8.1.310.0140.00216.43
8.1.300.0140.00216.86
8.1.290.0100.00423.33
8.1.280.0080.00821.04
8.1.270.0090.00522.00
8.1.260.0110.00522.51
8.1.250.0120.00422.83
8.1.240.0160.00422.04
8.1.230.0150.00321.99
8.1.220.0140.00620.73
8.1.210.0140.00520.93
8.1.200.0150.00420.66
8.1.190.0120.00620.60
8.1.180.0140.00620.85
8.1.170.0120.00720.91
8.1.160.0120.00820.96
8.1.150.0120.00621.27
8.1.140.0140.00521.41
8.1.130.0120.00720.60
8.1.120.0130.00520.69
8.1.110.0140.00620.68
8.1.100.0100.00821.00
8.1.90.0120.00620.71
8.1.80.0130.00521.04
8.1.70.0120.00620.66
8.1.60.0160.00520.73
8.1.50.0130.00620.72
8.1.40.0150.00620.73
8.1.30.0110.00820.76
8.1.20.0140.00420.80
8.1.10.0150.00521.07
8.1.00.0160.00320.64
8.0.300.0100.00620.82
8.0.290.0140.00720.52
8.0.280.0190.00420.76
8.0.270.0150.00520.46
8.0.260.0160.00620.38
8.0.250.0170.00420.48
8.0.240.0170.00620.46
8.0.230.0150.00420.47
8.0.220.0160.00420.41
8.0.210.0180.00520.42
8.0.200.0170.00420.46
8.0.190.0190.00620.48
8.0.180.0130.00520.44
8.0.170.0150.00820.49
8.0.160.0150.00520.47
8.0.150.0190.00420.41
8.0.140.0160.00720.39
8.0.130.0140.00619.70
8.0.120.0160.00820.46
8.0.110.0170.00620.77
8.0.100.0150.00520.42
8.0.90.0170.00320.42
8.0.80.0200.00520.41
8.0.70.0110.00520.30
8.0.60.0160.00520.49
8.0.50.0150.00920.44
8.0.30.0080.00819.94
8.0.20.0140.00919.39
8.0.10.0180.00420.52
8.0.00.0140.00719.78
7.4.330.0130.00520.16
7.4.320.0120.00620.66
7.4.300.0190.00520.32
7.4.290.0190.00620.38
7.4.280.0230.00620.32
7.4.270.0200.00820.36
7.4.260.0190.00520.29
7.4.250.0180.00620.32
7.4.240.0200.00520.73
7.4.230.0180.00720.31
7.4.220.0160.01220.27
7.4.210.0210.00520.29
7.4.200.0160.00620.31
7.4.190.0240.00621.27
7.4.180.0240.00621.35
7.4.160.0200.00519.97
7.4.150.0210.00720.50
7.4.140.0150.00919.83
7.4.130.0140.00919.11
7.4.120.0170.00818.89
7.4.110.0170.00719.72
7.4.100.0210.00519.66
7.4.90.0190.00819.91
7.4.80.0170.00920.21
7.4.70.0190.00719.68
7.4.60.0190.00719.69
7.4.50.0200.00619.62
7.4.40.0180.00719.64
7.4.30.0190.00619.66
7.4.20.0220.00420.30
7.4.10.0210.00620.65
7.4.00.0190.00519.42
7.3.330.0160.00719.63
7.3.320.0200.00519.70
7.3.310.0190.00720.22
7.3.300.0170.00620.20
7.3.290.0140.00719.10
7.3.280.0180.00419.12
7.3.270.0230.00420.42
7.3.260.0200.00719.95
7.3.250.0180.00919.08
7.3.240.0200.00719.43
7.3.230.0190.00619.60
7.3.220.0210.00720.57
7.3.210.0180.00719.59
7.3.200.0180.00619.63
7.3.190.0200.00619.50
7.3.180.0170.00719.56
7.3.170.0160.00919.93
7.3.160.0190.00619.61
7.3.150.0190.00520.16
7.3.140.0210.00520.30
7.3.130.0210.00620.27
7.3.120.0220.00420.18
7.3.110.0190.00720.21
7.3.100.0190.00720.30
7.3.90.0160.00920.30
7.3.80.0180.00820.25
7.3.70.0180.00420.23
7.3.60.0210.00420.32
7.3.50.0200.00620.30
7.3.40.0240.00620.21
7.3.30.0220.00820.28
7.3.20.0330.00519.66
7.3.10.0290.00619.62
7.3.00.0310.00619.63
7.2.340.0230.00820.30
7.2.330.0190.00919.70
7.2.320.0210.00819.61
7.2.310.0200.00919.61
7.2.300.0220.00619.60
7.2.290.0220.00519.62
7.2.280.0200.01120.57
7.2.270.0230.00720.31
7.2.260.0230.00620.25
7.2.250.0200.00520.33
7.2.240.0220.00720.26
7.2.230.0170.01020.24
7.2.220.0220.00720.29
7.2.210.0190.00920.26
7.2.200.0260.00220.29
7.2.190.0220.00720.29
7.2.180.0210.00820.26
7.2.170.0220.00620.31
7.2.160.0240.00620.27
7.2.150.0330.00619.65
7.2.140.0270.00719.71
7.2.130.0330.00619.71
7.2.120.0320.00819.77
7.2.110.0280.00719.75
7.2.100.0270.00619.69
7.2.90.0300.00619.71
7.2.80.0260.00819.71
7.2.70.0310.00919.71
7.2.60.0280.00919.24
7.2.50.0480.00519.68
7.2.40.0270.00919.72
7.2.30.0360.00819.70
7.2.20.0280.00819.70
7.2.10.0340.00819.72
7.2.00.0190.00819.68
7.1.330.0200.00520.33
7.1.320.0210.00520.30
7.1.310.0200.00720.32
7.1.300.0180.00620.26
7.1.290.0220.00520.30
7.1.280.0230.00420.31
7.1.270.0230.00420.36
7.1.260.0200.00520.29
7.1.250.0390.00819.21
7.1.240.0310.00719.21
7.1.230.0260.00719.22
7.1.220.0250.01019.19
7.1.210.0310.00519.16
7.1.200.0240.00718.70
7.1.190.0360.00719.21
7.1.180.0300.00719.22
7.1.170.0280.00419.16
7.1.160.0330.00519.19
7.1.150.0280.00719.09
7.1.140.0280.00719.20
7.1.130.0290.00519.16
7.1.120.0270.00819.09
7.1.110.0260.00619.22
7.1.100.0270.00619.03
7.1.90.0270.00819.21
7.1.80.0300.00419.18
7.1.70.0270.00618.86
7.1.60.0220.00618.87
7.1.50.0330.00818.91
7.1.40.0340.00818.83
7.1.30.0470.00518.86
7.1.20.0320.00418.76
7.1.10.0220.00718.79
7.1.00.0190.00518.83
7.0.330.0270.00818.97
7.0.320.0280.00518.99
7.0.310.0290.00719.02
7.0.300.0300.00818.92
7.0.290.0270.00818.96
7.0.280.0270.00718.93
7.0.270.0300.00518.93
7.0.260.0240.00718.92
7.0.250.0270.00719.00
7.0.240.0260.00718.99
7.0.230.0260.00619.00
7.0.220.0270.00619.02
7.0.210.0270.00719.00
7.0.200.0260.00918.68
7.0.190.0260.00618.66
7.0.180.0260.00518.54
7.0.170.0250.00618.70
7.0.160.0240.00818.67
7.0.150.0430.00518.58
7.0.140.0310.00518.64
7.0.130.0220.00718.57
7.0.120.0250.00818.62
7.0.110.0240.00618.57
7.0.100.0200.00718.53
7.0.90.0200.00618.53
7.0.80.0230.00618.62
7.0.70.0220.00618.50
7.0.60.0190.00518.59
7.0.50.0220.00618.62
7.0.40.0210.00618.47
7.0.30.0210.00218.45
7.0.20.0240.00718.50
7.0.10.0250.00618.43
7.0.00.0220.00718.47
5.6.400.0200.00620.05
5.6.390.0180.00620.11
5.6.380.0170.00619.06
5.6.370.0210.00519.97
5.6.360.0180.00820.06
5.6.350.0170.00720.07
5.6.340.0190.00620.14
5.6.330.0130.01020.08
5.6.320.0200.00620.15
5.6.310.0200.00420.09
5.6.300.0190.00520.00
5.6.290.0200.00520.05
5.6.280.0210.00520.09
5.6.270.0200.00620.12
5.6.260.0240.00420.06
5.6.250.0210.00620.05
5.6.240.0190.00620.10
5.6.230.0180.00620.10
5.6.220.0230.00620.10
5.6.210.0200.00620.08
5.6.200.0160.00518.91
5.6.190.0180.00620.14
5.6.180.0190.00420.13
5.6.170.0170.00620.11
5.6.160.0180.00620.06
5.6.150.0180.00620.14
5.6.140.0190.00720.09
5.6.130.0180.00620.15
5.6.120.0170.00920.07
5.6.110.0180.00820.11
5.6.100.0200.00620.05
5.6.90.0180.00720.06
5.6.80.0160.00820.05
5.6.70.0190.00620.04
5.6.60.0190.00620.06
5.6.50.0210.00720.09
5.6.40.0160.01020.08
5.6.30.0190.00920.06
5.6.20.0160.00720.04
5.6.10.0180.00620.03
5.6.00.0200.00520.03

preferences:
31.56 ms | 403 KiB | 5 Q