3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ab implements Serializable{ /** * @var ElementDataTypeImpl */ protected $x; function __construct() { $this->x = 'val'; } public function serialize() { throw new Exception('Can\' serialize '); } public function unserialize($str) { throw new Exception('Can\' serialize '); } } var_dump(serialize(new Ab())); die;

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.0100.01018.39
8.3.50.0210.00322.08
8.3.40.0070.00718.85
8.3.30.0110.00319.04
8.3.20.0080.00020.32
8.3.10.0080.00023.64
8.3.00.0000.00820.97
8.2.180.0160.00616.88
8.2.170.0090.00622.96
8.2.160.0120.00320.35
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.35
8.2.110.0030.00619.13
8.2.100.0090.00317.72
8.2.90.0030.00519.09
8.2.80.0000.00817.97
8.2.70.0040.00417.61
8.2.60.0100.00317.80
8.2.50.0060.00318.07
8.2.40.0030.00518.22
8.2.30.0000.00718.29
8.2.20.0050.00317.62
8.2.10.0070.00018.16
8.2.00.0050.00317.80
8.1.280.0180.00425.92
8.1.270.0040.00422.19
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0090.00023.88
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.13
8.1.190.0050.00217.23
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0000.00721.97
8.1.150.0080.00018.57
8.1.140.0000.00817.46
8.1.130.0000.00719.61
8.1.120.0050.00317.47
8.1.110.0000.00717.49
8.1.100.0030.00517.52
8.1.90.0040.00417.32
8.1.80.0000.00717.36
8.1.70.0030.00317.41
8.1.60.0000.00817.47
8.1.50.0080.00017.49
8.1.40.0090.00317.48
8.1.30.0050.00417.69
8.1.20.0060.00317.47
8.1.10.0040.00417.62
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00718.50
8.0.270.0040.00417.20
8.0.260.0060.00017.20
8.0.250.0000.00717.01
8.0.240.0050.00317.04
8.0.230.0030.00316.92
8.0.220.0040.00416.98
8.0.210.0030.00516.86
8.0.200.0030.00316.98
8.0.190.0030.00517.01
8.0.180.0070.00016.84
8.0.170.0060.00316.98
8.0.160.0000.00816.88
8.0.150.0040.00416.93
8.0.140.0000.00716.80
8.0.130.0070.00013.34
8.0.120.0040.00416.93
8.0.110.0040.00416.84
8.0.100.0070.00016.84
8.0.90.0000.00516.74
8.0.80.0090.00617.01
8.0.70.0040.00416.91
8.0.60.0070.00016.92
8.0.50.0040.00416.91
8.0.30.0100.00917.28
8.0.20.0150.00917.40
8.0.10.0000.00816.93
8.0.00.0100.01016.72
7.4.330.0020.00215.00
7.4.320.0000.00616.50
7.4.300.0030.00316.44
7.4.290.0030.00716.55
7.4.280.0030.00516.45
7.4.270.0070.00016.53
7.4.260.0030.00616.41
7.4.250.0040.00416.35
7.4.240.0030.00316.53
7.4.230.0030.00316.37
7.4.220.0150.00616.57
7.4.210.0100.01016.50
7.4.200.0000.00716.47
7.4.160.0040.01116.45
7.4.150.0140.00817.40
7.4.140.0100.00817.86
7.4.130.0110.00916.48
7.4.120.0090.00816.49
7.4.110.0100.00716.56
7.4.100.0140.00716.59
7.4.90.0060.01316.51
7.4.80.0030.01419.39
7.4.70.0120.00416.55
7.4.60.0070.01116.48
7.4.50.0000.00416.29
7.4.40.0100.00616.43
7.4.30.0090.00616.54
7.4.00.0060.00814.90
7.3.330.0030.00313.38
7.3.320.0050.00013.20
7.3.310.0070.00016.39
7.3.300.0000.00716.22
7.3.290.0060.01216.41
7.3.280.0090.00716.34
7.3.270.0060.01117.40
7.3.260.0070.01416.53
7.3.250.0110.00816.39
7.3.240.0150.00716.39
7.3.230.0060.01216.39
7.3.210.0120.00916.40
7.3.200.0060.01319.39
7.3.190.0040.01416.57
7.3.180.0030.01216.29
7.3.170.0090.00616.43
7.3.160.0090.01516.53
7.3.120.0050.01314.86
7.3.110.0060.01314.64
7.3.100.0000.01114.83
7.3.90.0080.00514.90
7.3.80.0000.01014.98
7.3.70.0060.00914.70
7.3.60.0060.00914.89
7.3.50.0060.00914.82
7.3.40.0000.01514.93
7.3.30.0060.00914.61
7.3.20.0090.00916.75
7.3.10.0110.00716.43
7.3.00.0040.00416.64
7.2.330.0060.01316.62
7.2.320.0000.01716.49
7.2.310.0100.00616.77
7.2.300.0000.01716.60
7.2.290.0060.01216.37
7.2.250.0130.00614.72
7.2.240.0100.01014.55
7.2.230.0000.01115.23
7.2.220.0000.01315.11
7.2.210.0040.00815.12
7.2.200.0130.00014.88
7.2.190.0110.00314.72
7.2.180.0080.00314.76
7.2.170.0040.01115.01
7.2.110.0200.00316.62
7.2.60.0080.00316.91
7.2.00.0060.00619.29
7.1.330.0040.01015.50
7.1.320.0110.00315.77
7.1.310.0030.00815.61
7.1.300.0100.00615.72
7.1.290.0100.00015.71
7.1.280.0090.00615.63
7.1.270.0090.00715.70
7.1.260.0080.00415.71
7.1.200.0060.00615.61
7.1.100.0030.00917.61
7.1.70.0050.01016.69
7.1.60.0140.01119.70
7.1.50.0120.01616.92
7.1.00.0070.08722.42
7.0.200.0000.00716.84
7.0.140.0030.07021.97
7.0.60.0070.08020.03
7.0.50.0070.04317.93
7.0.40.0000.07720.30
7.0.30.0400.06320.16
7.0.20.0370.08020.35
7.0.10.0100.06720.33
7.0.00.0030.08720.20
5.6.280.0070.07021.07
5.6.210.0030.04320.77
5.6.200.0100.03718.14
5.6.190.0030.07020.48
5.6.180.0300.07320.47
5.6.170.0200.04020.56
5.6.160.0170.07320.48
5.6.150.0030.04018.18
5.6.140.0030.07018.23
5.6.130.0000.04318.15
5.6.120.0130.08021.10
5.6.110.0070.03721.15
5.6.100.0100.05721.14
5.6.90.0030.05020.95
5.6.80.0100.08020.38
5.5.350.3800.04320.45
5.5.340.0000.04318.02
5.5.330.0100.07020.48
5.5.320.0300.03720.32
5.5.310.0370.08020.30
5.5.300.0170.07018.07
5.5.290.0070.04317.98
5.5.280.0030.06020.87
5.5.270.0170.06020.64
5.5.260.0030.09020.89
5.5.250.0130.07720.69
5.5.240.0230.07320.24
5.4.450.0370.07719.41
5.4.440.0400.06019.44
5.4.430.0500.04319.49
5.4.420.0400.07319.44
5.4.410.0470.05719.41
5.4.400.0330.04018.95
5.4.390.0400.05018.84
5.4.380.0400.04319.31
5.4.370.0330.04019.09
5.4.360.0400.07019.09
5.4.350.0430.06719.20
5.4.340.0530.05719.12
5.4.320.0330.04018.87
5.4.310.0400.03319.13
5.4.300.0470.06318.97
5.4.290.0400.04319.08
5.4.280.0430.04319.14
5.4.270.0470.04019.21
5.4.260.0300.04719.30
5.4.250.0400.04319.19
5.4.240.0370.03319.20
5.4.230.0370.05318.94
5.4.220.0430.07319.22
5.4.210.0330.04719.11
5.4.200.0330.03718.83
5.4.190.0330.05318.96
5.4.180.0430.06319.22
5.4.170.0470.05719.16
5.4.160.0370.06319.18
5.4.150.0470.04019.19
5.4.140.0470.06316.51
5.4.130.0370.05716.39
5.4.120.0330.06016.36
5.4.110.0330.03716.36
5.4.100.0630.06016.63
5.4.90.0400.06316.29
5.4.80.0430.04016.54
5.4.70.0400.04316.44
5.4.60.0270.04016.34
5.4.50.0430.04316.39
5.4.40.0470.06016.25
5.4.30.0430.03716.44
5.4.20.0270.04016.43
5.4.10.0430.04016.34
5.4.00.0430.05015.86
5.3.290.0400.06714.59
5.3.280.0400.03314.61
5.3.270.0330.04314.76
5.3.260.0470.06714.76
5.3.250.0470.04014.58
5.3.240.0370.03314.62
5.3.230.0430.04014.75
5.3.220.0300.05714.63
5.3.210.0330.04314.80
5.3.200.0400.03014.56
5.3.190.0370.03314.57
5.3.180.0370.04314.59
5.3.170.0470.06314.68
5.3.160.0400.04314.48
5.3.150.0470.06314.64
5.3.140.0300.04014.64
5.3.130.0400.04314.48
5.3.120.0500.05014.61
5.3.110.0370.04714.55
5.3.100.0430.04013.95
5.3.90.0430.06013.94
5.3.80.0470.04013.95
5.3.70.0430.05314.00
5.3.60.0330.05714.23
5.3.50.0470.06314.04
5.3.40.0430.02713.88
5.3.30.0370.06314.07
5.3.20.0300.03713.70
5.3.10.0500.05313.68
5.3.00.0370.03313.55
5.2.170.0270.04012.45
5.2.160.0370.03312.45
5.2.150.0400.05312.45
5.2.140.0530.05012.45
5.2.130.0400.03012.45
5.2.120.0500.03712.45
5.2.110.0370.02712.45
5.2.100.0330.03012.45
5.2.90.0500.03712.45
5.2.80.0570.02712.45
5.2.70.0430.05712.45
5.2.60.0370.04712.45
5.2.50.0370.03012.45
5.2.40.0370.03012.45
5.2.30.0230.03312.45
5.2.20.0300.03712.45
5.2.10.0270.03712.45
5.2.00.0270.03712.45
5.1.60.0400.02312.45
5.1.50.0300.03012.45
5.1.40.0270.02712.45
5.1.30.0300.02312.45
5.1.20.0300.04712.45
5.1.10.0300.03312.45
5.1.00.0330.02012.45
5.0.50.0200.02712.45
5.0.40.0130.04312.45
5.0.30.0200.03312.45
5.0.20.0170.04312.45
5.0.10.0170.03012.45
5.0.00.0130.04012.45
4.4.90.0200.03312.45
4.4.80.0170.03312.45
4.4.70.0100.02312.45
4.4.60.0200.02712.45
4.4.50.0130.04012.45
4.4.40.0170.03312.45
4.4.30.0230.03012.45
4.4.20.0130.01712.45
4.4.10.0230.01712.45
4.4.00.0130.03012.45
4.3.110.0130.03312.45
4.3.100.0170.02312.45
4.3.90.0200.03012.45
4.3.80.0170.03012.45
4.3.70.0230.01712.45
4.3.60.0130.01712.45
4.3.50.0130.02312.45
4.3.40.0130.03012.45
4.3.30.0070.02012.45
4.3.20.0170.03012.45
4.3.10.0070.03712.45
4.3.00.0170.01012.45

preferences:
42.04 ms | 401 KiB | 5 Q