3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MySplFileObject extends SplFileObject{ public function __construct() {} public function serialize() {return '';} public function unserialize($data) {} } $fileObject = new MySplFileObject; //echo serialize($fileObject); $fileObject = unserialize('O:15:"MySplFileObject":0:{}'); print_r($fileObject); echo $fileObject;

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.0090.00916.48
8.3.50.0150.00018.06
8.3.40.0120.00318.59
8.3.30.0150.00019.23
8.3.20.0040.00420.04
8.3.10.0030.00523.60
8.3.00.0040.00418.99
8.2.180.0120.00918.48
8.2.170.0140.00422.96
8.2.160.0130.00020.52
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0070.00020.56
8.2.110.0070.00322.11
8.2.100.0090.00317.72
8.2.90.0030.00619.22
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0060.00319.95
8.2.30.0040.00418.06
8.2.20.0030.00517.59
8.2.10.0040.00418.07
8.2.00.0060.00317.68
8.1.280.0080.00625.92
8.1.270.0080.00023.82
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0090.00319.09
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.38
8.1.180.0050.00319.01
8.1.170.0060.00318.39
8.1.160.0000.00821.88
8.1.150.0000.00718.59
8.1.140.0000.00817.46
8.1.130.0030.00317.86
8.1.120.0020.00517.36
8.1.110.0070.00017.30
8.1.100.0030.00417.41
8.1.90.0040.00417.46
8.1.80.0070.00017.45
8.1.70.0050.00217.38
8.1.60.0000.00917.61
8.1.50.0090.00017.39
8.1.40.0040.00417.42
8.1.30.0000.00817.63
8.1.20.0040.00417.60
8.1.10.0040.00417.60
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0000.00718.52
8.0.270.0000.00717.22
8.0.260.0030.00317.32
8.0.250.0030.00317.08
8.0.240.0000.00817.07
8.0.230.0030.00316.88
8.0.220.0040.00416.92
8.0.210.0070.00016.82
8.0.200.0060.00016.86
8.0.190.0020.00516.90
8.0.180.0000.00716.96
8.0.170.0000.00816.94
8.0.160.0000.00716.95
8.0.150.0070.00316.79
8.0.140.0040.00416.84
8.0.130.0030.00313.40
8.0.120.0030.00616.92
8.0.110.0000.00716.82
8.0.100.0030.00616.93
8.0.90.0050.00216.74
8.0.80.0130.01016.83
8.0.70.0000.00816.80
8.0.60.0040.00416.80
8.0.50.0050.00216.86
8.0.30.0080.01517.09
8.0.20.0070.01017.40
8.0.10.0020.00516.96
8.0.00.0090.00916.67
7.4.330.0000.00515.07
7.4.320.0030.00316.54
7.4.300.0030.00316.54
7.4.290.0040.00816.53
7.4.280.0040.00416.46
7.4.270.0000.00716.53
7.4.260.0050.00216.61
7.4.250.0040.00416.57
7.4.240.0020.00516.60
7.4.230.0030.00316.66
7.4.220.0100.00716.56
7.4.210.0090.00716.50
7.4.200.0000.00716.60
7.4.190.0030.00316.75
7.4.160.0100.00716.43
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0070.01216.54
7.4.120.0090.00916.62
7.4.110.0120.00916.44
7.4.100.0110.00716.56
7.4.90.0100.00616.48
7.4.80.0070.01419.39
7.4.70.0100.00616.54
7.4.60.0150.00316.64
7.4.50.0060.00016.39
7.4.40.0080.00816.54
7.4.30.0120.00416.59
7.4.00.0060.01015.14
7.3.330.0020.00213.31
7.3.320.0050.00013.34
7.3.310.0030.00316.33
7.3.300.0050.00216.18
7.3.290.0100.00316.30
7.3.280.0080.01116.30
7.3.270.0070.01017.40
7.3.260.0040.01316.32
7.3.250.0150.00316.25
7.3.240.0070.01716.23
7.3.230.0120.00616.60
7.3.210.0130.00616.52
7.3.200.0110.01119.39
7.3.190.0100.01216.34
7.3.180.0120.00316.20
7.3.170.0140.00816.66
7.3.160.0040.01216.31
7.3.120.0100.00315.07
7.2.330.0090.00916.82
7.2.320.0080.01116.54
7.2.310.0090.00916.81
7.2.300.0090.00616.36
7.2.290.0110.00816.79
7.2.00.0040.01119.16
7.1.100.0030.01318.12
7.1.70.0040.01116.93
7.1.60.0000.01117.04
7.1.50.0140.01116.90
7.1.00.0000.08022.45
7.0.200.0030.01416.59
7.0.140.0070.07022.00
7.0.60.0070.06319.93
7.0.50.0070.03717.92
7.0.40.0030.05020.27
7.0.30.0230.04320.24
7.0.20.0270.08020.05
7.0.10.0070.04020.06
7.0.00.0000.06020.31
5.6.280.0030.07320.90
5.6.210.0130.07720.69
5.6.200.0030.06718.14
5.6.190.0030.06020.54
5.6.180.0500.05720.61
5.6.170.0270.04320.47
5.6.160.0100.08320.44
5.6.150.0070.04718.28
5.6.140.0030.04018.27
5.6.130.0070.04718.24
5.6.120.0130.07721.07
5.6.110.0070.07721.15
5.6.100.0030.08321.13
5.6.90.0100.06721.04
5.6.80.0070.08020.53
5.5.350.0170.04020.30
5.5.340.0030.05017.96
5.5.330.0000.06020.37
5.5.320.0000.04020.30
5.5.310.0130.04720.27
5.5.300.0030.04717.94
5.5.290.0000.05717.95
5.5.280.0030.08720.82
5.5.270.0070.03720.77
5.5.260.0030.08720.64
5.5.250.0100.07320.68
5.5.240.0070.05720.25
5.4.450.0300.05319.70
5.4.440.0830.06319.60
5.4.430.0270.05719.56
5.4.420.0770.05319.55
5.4.410.1300.07019.18
5.4.400.1170.05319.29
5.4.390.0630.06319.25
5.4.380.0000.06318.60
5.4.370.0100.05318.58
5.4.360.0100.05718.79
5.4.350.0100.05718.50
5.4.340.0170.04718.52
5.4.320.0020.04512.52
5.4.310.0070.05512.52
5.4.300.0060.04412.52
5.4.290.0070.04212.52
5.4.280.0060.03812.43
5.4.270.0060.03912.43
5.4.260.0060.04012.43
5.4.250.0090.03712.43
5.4.240.0080.03712.43
5.4.230.0180.06012.42
5.4.220.0080.04112.42
5.4.210.0120.04412.42
5.4.200.0080.04012.43
5.4.190.0090.03612.42
5.4.180.0090.03512.42
5.4.170.0120.03412.43
5.4.160.0080.03612.43
5.4.150.0060.03812.43
5.4.140.0070.04012.10
5.4.130.0110.03312.09
5.4.120.0060.04412.05
5.4.110.0100.03712.05
5.4.100.0070.04012.05
5.4.90.0090.05612.05
5.4.80.0060.04312.05
5.4.70.0080.03512.04
5.4.60.0080.04112.04
5.4.50.0080.04512.04
5.4.40.0080.03812.03
5.4.30.0100.03512.02
5.4.20.0090.03512.03
5.4.10.0080.03812.03
5.4.00.0090.03911.52
5.3.290.0080.05812.80
5.3.280.0090.04312.71
5.3.270.0040.04612.72
5.3.260.0100.04012.72
5.3.250.0090.03812.71
5.3.240.0120.03912.72
5.3.230.0070.04012.70
5.3.220.0160.05212.68
5.3.210.0170.06112.68
5.3.200.0100.04312.68
5.3.190.0150.04812.68
5.3.180.0180.09212.68
5.3.170.0170.08012.67
5.3.160.0330.13012.67
5.3.150.0080.07512.67
5.3.140.0130.06312.66
5.3.130.0120.07212.66
5.3.120.0200.08512.66
5.3.110.0260.07312.66
5.3.100.0120.05412.12
5.3.90.0120.06112.09
5.3.80.0110.06112.07
5.3.70.0180.05412.07
5.3.60.0190.05012.06
5.3.50.0110.04312.00
5.3.40.0130.05712.00
5.3.30.0100.05911.97
5.3.20.0120.04511.74
5.3.10.0090.04511.71
5.3.00.0090.03911.70
5.2.170.0080.0329.19
5.2.160.0080.0309.19
5.2.150.0050.0369.20
5.2.140.0080.0439.19
5.2.130.0190.0509.15
5.2.120.0050.0339.15
5.2.110.0080.0359.15
5.2.100.0060.0319.14
5.2.90.0070.0319.14
5.2.80.0050.0329.14
5.2.70.0100.0289.13
5.2.60.0080.0599.09
5.2.50.0080.0549.06
5.2.40.0070.0429.04
5.2.30.0060.0469.01
5.2.20.0080.0439.00
5.2.10.0030.0448.91
5.2.00.0070.0478.77
5.1.60.0090.0318.06
5.1.50.0090.0428.06
5.1.40.0050.0388.04
5.1.30.0050.0288.39
5.1.20.0060.0298.40
5.1.10.0050.0378.13
5.1.00.0070.0428.13
5.0.50.0030.0226.64
5.0.40.0040.0206.50
5.0.30.0050.0316.32
5.0.20.0020.0216.29
5.0.10.0020.0226.26
5.0.00.0040.0316.25
4.4.90.0030.0174.78
4.4.80.0020.0174.76
4.4.70.0040.0164.76
4.4.60.0030.0224.76
4.4.50.0020.0244.77
4.4.40.0050.0284.70
4.4.30.0040.0154.76
4.4.20.0020.0184.84
4.4.10.0050.0224.85
4.4.00.0030.0284.75
4.3.110.0020.0184.67
4.3.100.0020.0174.66
4.3.90.0040.0164.63
4.3.80.0030.0284.58
4.3.70.0080.0144.63
4.3.60.0020.0174.63
4.3.50.0050.0154.63
4.3.40.0080.0424.54
4.3.30.0060.0453.30
4.3.20.0060.0493.28
4.3.10.0070.0353.24
4.3.00.0100.01016.15

preferences:
63.9 ms | 400 KiB | 5 Q