3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A implements Serializable { public function serialize() { return serialize(array($this->default_namespace, $this->parameters)); } /** * Unserializes a sfNamespacedParameterHolder instance. * * @param string $serialized A serialized sfNamespacedParameterHolder instance */ public function unserialize($serialized) { $data = unserialize($serialized); $this->default_namespace = $data[0]; $this->parameters = $data[1]; } } new A(); $a = serialize(new A()); $b = unserialize($a);

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.5.00.0120.01019.99
8.4.150.0020.00014.05
8.4.140.0140.00817.77
8.4.130.0150.00518.01
8.4.120.0090.01120.18
8.4.110.0100.00818.88
8.4.100.0280.00917.73
8.4.90.0390.01117.96
8.4.80.0420.01017.80
8.4.70.0250.00717.72
8.4.60.0420.00817.86
8.4.50.0220.00817.95
8.4.40.0350.00717.41
8.4.30.0190.00417.80
8.4.20.0220.00417.86
8.4.10.0350.00717.42
8.3.280.0110.00818.64
8.3.270.0140.00716.82
8.3.260.0100.00916.98
8.3.250.0060.00217.05
8.3.240.0120.00717.25
8.3.230.0400.00916.47
8.3.220.0260.00616.49
8.3.210.0310.01016.52
8.3.200.0380.01316.43
8.3.190.0350.00716.44
8.3.180.0280.00716.53
8.3.170.0390.01216.86
8.3.160.0420.00716.46
8.3.150.0410.00816.32
8.3.140.0440.00616.46
8.3.130.0340.01116.54
8.3.120.0410.00516.40
8.3.110.0340.01116.59
8.3.100.0430.00816.49
8.3.90.0410.00916.59
8.3.80.0390.00916.67
8.3.70.0260.00416.64
8.3.60.0200.00316.72
8.3.50.0150.00616.79
8.3.40.0340.00617.35
8.3.30.0330.00717.48
8.3.20.0350.00517.39
8.3.10.0340.00517.49
8.3.00.0180.00517.48
8.2.290.0270.00816.46
8.2.280.0330.00816.42
8.2.270.0300.00916.62
8.2.260.0200.00516.70
8.2.250.0370.00616.46
8.2.240.0390.00516.61
8.2.230.0320.00816.70
8.2.220.0320.00716.51
8.2.210.0290.01016.46
8.2.200.0420.00716.38
8.2.190.0340.00716.42
8.2.180.0390.00316.59
8.2.170.0380.01217.64
8.2.160.0290.00317.88
8.2.150.0340.00617.79
8.2.140.0380.00717.41
8.2.130.0330.01117.70
8.2.120.0360.01017.69
8.2.110.0390.00617.89
8.2.100.0280.01117.53
8.2.90.0330.00817.82
8.2.80.0230.00817.24
8.2.70.0340.00517.71
8.2.60.0160.00317.57
8.2.50.0330.00917.52
8.2.40.0390.00817.44
8.2.30.0310.00917.61
8.2.20.0330.00617.60
8.2.10.0300.01017.75
8.2.00.0400.00817.16
8.1.330.0290.01115.77
8.1.320.0300.01015.97
8.1.310.0350.00716.16
8.1.300.0330.00716.08
8.1.290.0310.01016.07
8.1.280.0350.00616.13
8.1.270.0320.00917.34
8.1.260.0300.01017.26
8.1.250.0430.00917.28
8.1.240.0230.00317.33
8.1.230.0130.00417.24
8.1.220.0100.00817.23
8.1.210.0330.00717.39
8.1.200.0220.01117.35
8.1.190.0270.00817.02
8.1.180.0290.00917.05
8.1.170.0310.00417.25
8.1.160.0320.01017.20
8.1.150.0310.00717.27
8.1.140.0320.01216.98
8.1.130.0240.01217.14
8.1.120.0280.00617.14
8.1.110.0340.00317.06
8.1.100.0260.01217.05
8.1.90.0330.00817.34
8.1.80.0250.01417.10
8.1.70.0390.00617.36
8.1.60.0260.01217.38
8.1.50.0260.00617.17
8.1.40.0280.01117.37
8.1.30.0340.00517.43
8.1.20.0290.00417.36
8.1.10.0290.00617.54
8.1.00.0240.01217.39
8.0.300.0310.00816.79
8.0.290.0360.00716.59
8.0.280.0310.00816.59
8.0.270.0320.00716.77
8.0.260.0340.00716.48
8.0.250.0320.00516.48
8.0.240.0130.00416.68
8.0.230.0330.00616.53
8.0.220.0330.00716.77
8.0.210.0330.00916.72
8.0.200.0300.00916.40
8.0.190.0310.00816.83
8.0.180.0270.00716.77
8.0.170.0340.00616.41
8.0.160.0350.00716.83
8.0.150.0200.00416.77
8.0.140.0310.00816.64
8.0.130.0270.00916.64
8.0.120.0130.00516.75
8.0.110.0150.00216.64
8.0.100.0250.00316.36
8.0.90.0140.01116.70
8.0.80.0370.00516.70
8.0.70.0250.00816.45
8.0.60.0290.01016.49
8.0.50.0300.00916.36
8.0.30.0380.00816.07
8.0.20.0330.00916.62
8.0.10.0340.00416.94
8.0.00.0320.00716.80
7.4.330.0310.00716.21
7.4.320.0280.00916.23
7.4.300.0300.00716.41
7.4.290.0250.00916.28
7.4.280.0320.00416.21
7.4.270.0300.00816.25
7.4.260.0300.00416.29
7.4.250.0250.00916.20
7.4.240.0300.00416.18
7.4.230.0300.00716.25
7.4.220.0280.00816.23
7.4.210.0290.00716.21
7.4.200.0260.00716.33
7.4.190.0180.00416.41
7.4.180.0140.00316.16
7.4.160.0220.00416.51
7.4.150.0120.00616.00
7.4.140.0250.00716.31
7.4.130.0110.00516.38
7.4.120.0310.00716.33
7.4.110.0260.00716.19
7.4.100.0180.00216.16
7.4.90.0290.00616.36
7.4.80.0320.00616.22
7.4.70.0160.00816.22
7.4.60.0370.00516.30
7.4.50.0310.00416.15
7.4.40.0300.00715.95
7.4.30.0290.00715.98
7.4.20.0330.00515.97
7.4.10.0290.00616.15
7.4.00.0270.00416.22
7.3.330.0180.00416.24
7.3.320.0290.00816.18
7.3.310.0310.00416.29
7.3.300.0320.00616.27
7.3.290.0290.00816.10
7.3.280.0280.00815.97
7.3.270.0320.00615.88
7.3.260.0340.00415.91
7.3.250.0320.00516.12
7.3.240.0300.01315.95
7.3.230.0270.00716.18
7.3.220.0340.00716.02
7.3.210.0280.00616.36
7.3.200.0230.00616.12
7.3.190.0120.00516.31
7.3.180.0100.00616.25
7.3.170.0330.00516.39
7.3.160.0220.00516.39
7.3.150.0310.00716.01
7.3.140.0290.00816.02
7.3.130.0290.00816.18
7.3.120.0300.00815.95
7.3.110.0310.00515.98
7.3.100.0200.00516.18
7.3.90.0100.00616.57
7.3.80.0260.00715.98
7.3.70.0300.00316.20
7.3.60.0280.00616.11
7.3.50.0310.00516.43
7.3.40.0280.00916.42
7.3.30.0300.00616.05
7.3.20.0350.00718.05
7.3.10.0280.00617.92
7.3.00.0270.00817.89
7.2.340.0300.00615.98
7.2.330.0310.00616.23
7.2.320.0170.00616.29
7.2.310.0110.00516.38
7.2.300.0280.00815.98
7.2.290.0260.01216.21
7.2.280.0320.00516.16
7.2.270.0290.00716.11
7.2.260.0290.00716.16
7.2.250.0300.00716.12
7.2.240.0350.00416.00
7.2.230.0250.01116.07
7.2.220.0310.00616.18
7.2.210.0270.00815.93
7.2.200.0270.01016.47
7.2.190.0260.01116.12
7.2.180.0270.00916.34
7.2.170.0320.00416.13
7.2.160.0280.00815.98
7.2.150.0280.01218.04
7.2.140.0160.00018.28
7.2.130.0200.00418.29
7.2.120.0270.00518.35
7.2.110.0310.00818.43
7.2.100.0310.00418.42
7.2.90.0400.00318.16
7.2.80.0290.01018.09
7.2.70.0260.00918.20
7.2.60.0310.00618.12
7.2.50.0290.00718.00
7.2.40.0300.00618.03
7.2.30.0360.00618.07
7.2.20.0330.00818.41
7.2.10.0260.00918.41
7.2.00.0300.00618.38
7.1.330.0210.01117.18
7.1.320.0240.00817.09
7.1.310.0240.00717.18
7.1.300.0230.00917.29
7.1.290.0260.00417.16
7.1.280.0150.00517.12
7.1.270.0260.00917.13
7.1.260.0260.00617.29
7.1.250.0240.00517.10
7.1.240.0250.00817.02
7.1.230.0250.00717.26
7.1.220.0230.01017.16
7.1.210.0250.00717.27
7.1.200.0230.00916.98
7.1.190.0260.00617.05
7.1.180.0280.00517.01
7.1.170.0230.00917.09
7.1.160.0250.00717.02
7.1.150.0240.00517.09
7.1.140.0220.00617.14
7.1.130.0250.00517.12
7.1.120.0370.00717.11
7.1.110.0350.00216.98
7.1.100.0150.00617.00
7.1.90.0110.00516.91
7.1.80.0130.00317.04
7.1.70.0240.00616.86
7.1.60.0280.00417.01
7.1.50.0190.00717.19
7.1.40.0230.00917.04
7.1.30.0260.00917.19
7.1.20.0270.00616.97
7.1.10.0250.00717.18
7.1.00.0240.00717.19
7.0.330.0200.00716.82
7.0.320.0100.00416.66
7.0.310.0090.00516.84
7.0.300.0110.00316.86
7.0.290.0110.00316.84
7.0.280.0170.00316.81
7.0.270.0230.00516.37
7.0.260.0290.00316.92
7.0.250.0200.00716.81
7.0.240.0230.00517.12
7.0.230.0220.00616.82
7.0.220.0190.00516.75
7.0.210.0120.00716.76
7.0.200.0250.00616.84
7.0.190.0300.00316.84
7.0.180.0260.00816.78
7.0.170.0250.00816.62
7.0.160.0210.00616.70
7.0.150.0190.00316.72
7.0.140.0130.00416.66
7.0.130.0230.00816.96
7.0.120.0160.00417.07
7.0.110.0160.00416.77
7.0.100.0200.00716.89
7.0.90.0250.00716.65
7.0.80.0290.01016.66
7.0.70.0230.00716.54
7.0.60.0300.00716.72
7.0.50.0340.00416.55
7.0.40.0260.00816.81
7.0.30.0280.00516.77
7.0.20.0270.00516.58
7.0.10.0250.00816.77
7.0.00.0180.01016.65
5.6.400.0280.00415.79
5.6.390.0300.01015.73
5.6.380.0240.00715.86
5.6.370.0240.00815.61
5.6.360.0290.00315.92
5.6.350.0230.00815.95
5.6.340.0270.00515.75
5.6.330.0240.00715.71
5.6.320.0240.00815.78
5.6.310.0230.00815.71
5.6.300.0220.00715.79
5.6.290.0140.00215.75
5.6.280.0250.00515.57
5.6.270.0240.00915.68
5.6.260.0270.00615.78
5.6.250.0230.00815.60
5.6.240.0180.00815.79
5.6.230.0240.00815.73
5.6.220.0240.00815.86
5.6.210.0210.01115.73
5.6.200.0170.00315.89
5.6.190.0280.00715.98
5.6.180.0230.00915.92
5.6.170.0250.00815.78
5.6.160.0250.00415.69
5.6.150.0250.00715.57
5.6.140.0250.00415.81
5.6.130.0260.00615.79
5.6.120.0210.01115.74
5.6.110.0260.00615.50
5.6.100.0260.00615.68
5.6.90.0290.00315.62
5.6.80.0210.01015.63
5.6.70.0260.00616.05
5.6.60.0260.00515.79
5.6.50.0310.00515.69
5.6.40.0260.00715.70
5.6.30.0280.00715.76
5.6.20.0250.00715.69
5.6.10.0220.01015.73
5.6.00.0240.00415.57
5.5.380.0250.00715.75
5.5.370.0210.00915.82
5.5.360.0230.00415.61
5.5.350.0280.00715.73
5.5.340.0250.00715.78
5.5.330.0250.00615.74
5.5.320.0250.00815.87
5.5.310.0260.00615.58
5.5.300.0220.01015.80
5.5.290.0270.00615.71
5.5.280.0230.00915.73
5.5.270.0230.00615.73
5.5.260.0210.00715.64
5.5.250.0210.00815.82
5.5.240.0180.00915.52
5.5.230.0260.00615.71
5.5.220.0240.00715.58
5.5.210.0250.00615.84
5.5.200.0240.00715.59
5.5.190.0270.00415.66
5.5.180.0230.00715.42
5.5.170.0230.00815.53
5.5.160.0220.00715.70
5.5.150.0210.00815.54
5.5.140.0220.01015.57
5.5.130.0240.00215.35
5.5.120.0270.00415.51
5.5.110.0240.00715.60
5.5.100.0230.00615.66
5.5.90.0220.00515.67
5.5.80.0210.00415.59
5.5.70.0180.00615.34
5.5.60.0150.00415.74
5.5.50.0080.00515.84
5.5.40.0240.00715.60
5.5.30.0240.00615.40
5.5.20.0280.00315.49
5.5.10.0230.00815.58
5.5.00.0260.00815.56
5.4.450.0200.00215.04
5.4.440.0280.00515.04
5.4.430.0250.00515.04
5.4.420.0180.01115.04
5.4.410.0180.00515.04
5.4.400.0190.00415.04
5.4.390.0170.00315.04
5.4.380.0190.00215.04
5.4.370.0220.00215.04
5.4.360.0190.00515.04
5.4.350.0190.00615.04
5.4.340.0210.00415.04
5.4.330.0180.00715.04
5.4.320.0220.00715.04
5.4.310.0160.00815.04
5.4.300.0170.00315.04
5.4.290.0170.00615.04
5.4.280.0130.00215.04
5.4.270.0190.00515.04
5.4.260.0200.00515.04
5.4.250.0190.00515.04
5.4.240.0180.00315.04
5.4.230.0160.00415.04
5.4.220.0290.00515.04
5.4.210.0150.00515.04
5.4.200.0180.00615.04
5.4.190.0160.00915.04
5.4.180.0200.00415.04
5.4.170.0210.00415.04
5.4.160.0220.00315.04
5.4.150.0200.00515.04
5.4.140.0180.00515.04
5.4.130.0190.00415.04
5.4.120.0210.00315.04
5.4.110.0160.00415.04
5.4.100.0090.00215.04
5.4.90.0190.00515.04
5.4.80.0190.00515.04
5.4.70.0160.00415.04
5.4.60.0170.00715.04
5.4.50.0190.00415.04
5.4.40.0190.00615.04
5.4.30.0200.00415.04
5.4.20.0150.00615.04
5.4.10.0180.00615.04
5.4.00.0180.00615.04
5.3.290.0210.00715.04
5.3.280.0150.00515.04
5.3.270.0090.00215.04
5.3.260.0200.00415.04
5.3.250.0120.00115.04
5.3.240.0220.00415.04
5.3.230.0170.00415.04
5.3.220.0190.01015.04
5.3.210.0170.00815.04
5.3.200.0220.00315.04
5.3.190.0240.00515.04
5.3.180.0210.00415.04
5.3.170.0190.00615.04
5.3.160.0200.00515.04
5.3.150.0210.00415.04
5.3.140.0140.00915.04
5.3.130.0180.00515.04
5.3.120.0200.00515.04
5.3.110.0180.00715.04
5.3.100.0190.00515.04
5.3.90.0150.00815.04
5.3.80.0140.00315.04
5.3.70.0090.00515.04
5.3.60.0200.00215.04
5.3.50.0150.00415.04
5.3.40.0170.00415.04
5.3.30.0210.00315.04
5.3.20.0180.00615.04
5.3.10.0180.00615.04
5.3.00.0190.00515.04
5.2.170.0150.00515.04
5.2.160.0140.00515.04
5.2.150.0140.00515.04
5.2.140.0170.00215.04
5.2.130.0130.00815.04
5.2.120.0200.00415.04
5.2.110.0140.00415.04
5.2.100.0150.00415.04
5.2.90.0130.00615.04
5.2.80.0100.00815.04
5.2.70.0140.00615.04
5.2.60.0170.00315.04
5.2.50.0160.00415.04
5.2.40.0170.00415.04
5.2.30.0130.00715.04
5.2.20.0160.00415.04
5.2.10.0170.00215.04
5.2.00.0130.00515.04
5.1.60.0110.00515.04
5.1.50.0140.00415.04
5.1.40.0120.00515.04
5.1.30.0140.00415.04
5.1.20.0150.00315.04
5.1.10.0120.00515.04
5.1.00.0130.00315.04
5.0.50.0110.00415.04
5.0.40.0100.00415.04
5.0.30.0110.00315.04
5.0.20.0110.00415.04
5.0.10.0100.00515.04
5.0.00.0080.00715.04
4.4.90.0080.00015.04
4.4.80.0070.00215.04
4.4.70.0090.00015.04
4.4.60.0070.00215.04
4.4.50.0090.00015.04
4.4.40.0060.00315.04
4.4.30.0070.00215.04
4.4.20.0080.00115.04
4.4.10.0080.00115.04
4.4.00.0060.00215.04
4.3.110.0070.00215.04
4.3.100.0090.00015.04
4.3.90.0070.00215.04
4.3.80.0080.00015.04
4.3.70.0080.00115.04
4.3.60.0090.00015.04
4.3.50.0070.00115.04
4.3.40.0070.00215.04
4.3.30.0050.00215.04
4.3.20.0060.00115.04
4.3.10.0050.00215.04
4.3.00.0050.00215.04

preferences:
87.44 ms | 403 KiB | 5 Q