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:{}'); var_dump($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.0070.00716.48
8.3.50.0080.01021.95
8.3.40.0100.00718.82
8.3.30.0140.00019.21
8.3.20.0050.00320.20
8.3.10.0060.00323.53
8.3.00.0000.00719.20
8.2.180.0070.01118.48
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0070.00020.51
8.2.110.0030.00722.11
8.2.100.0000.01217.97
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0100.00018.07
8.2.40.0080.00019.95
8.2.30.0040.00418.25
8.2.20.0000.00817.69
8.2.10.0000.00817.99
8.2.00.0030.00517.64
8.1.280.0090.00625.92
8.1.270.0080.00023.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00323.63
8.1.230.0040.00819.08
8.1.220.0080.00017.74
8.1.210.0110.00018.77
8.1.200.0030.00617.36
8.1.190.0000.00917.23
8.1.180.0030.00519.13
8.1.170.0040.00418.48
8.1.160.0000.00721.95
8.1.150.0030.00518.63
8.1.140.0000.00717.38
8.1.130.0030.00317.86
8.1.120.0030.00617.33
8.1.110.0040.00417.38
8.1.100.0050.00217.44
8.1.90.0000.00717.46
8.1.80.0000.00817.38
8.1.70.0070.00017.36
8.1.60.0120.00017.61
8.1.50.0030.00517.52
8.1.40.0060.00317.48
8.1.30.0020.00517.61
8.1.20.0030.00517.62
8.1.10.0000.00817.57
8.1.00.0040.00417.56
8.0.300.0060.00318.77
8.0.290.0070.00017.05
8.0.280.0000.00718.32
8.0.270.0070.00017.11
8.0.260.0050.00217.11
8.0.250.0000.00716.94
8.0.240.0040.00716.98
8.0.230.0030.00317.00
8.0.220.0000.00716.95
8.0.210.0030.00316.83
8.0.200.0000.00616.91
8.0.190.0000.00817.02
8.0.180.0000.00716.94
8.0.170.0040.00416.77
8.0.160.0030.00316.95
8.0.150.0000.00716.84
8.0.140.0030.00616.86
8.0.130.0060.00013.25
8.0.120.0080.00016.77
8.0.110.0000.00816.94
8.0.100.0000.00916.78
8.0.90.0070.00016.93
8.0.80.0060.01216.81
8.0.70.0030.00616.93
8.0.60.0040.00416.94
8.0.50.0000.00716.74
8.0.30.0090.00917.06
8.0.20.0080.01017.40
8.0.10.0050.00217.07
8.0.00.0040.01316.72
7.4.330.0060.00015.07
7.4.320.0060.00016.54
7.4.300.0040.00416.61
7.4.290.0030.00616.63
7.4.280.0040.00416.45
7.4.270.0040.00416.65
7.4.260.0000.00716.59
7.4.250.0090.00016.48
7.4.240.0060.00116.58
7.4.230.0030.00316.41
7.4.220.0130.01016.71
7.4.210.0090.00716.57
7.4.200.0000.00716.52
7.4.190.0000.00716.78
7.4.160.0070.01016.40
7.4.150.0070.01117.40
7.4.140.0140.00717.86
7.4.130.0090.00916.53
7.4.120.0120.00616.46
7.4.110.0060.01616.45
7.4.100.0100.00716.64
7.4.90.0090.01216.39
7.4.80.0170.00619.39
7.4.70.0130.00316.35
7.4.60.0090.00916.42
7.4.50.0040.00416.47
7.4.40.0160.00316.45
7.4.30.0100.00716.63
7.4.00.0000.01714.89
7.3.330.0000.00513.16
7.3.320.0000.00513.36
7.3.310.0000.00716.28
7.3.300.0070.00016.21
7.3.290.0000.01416.43
7.3.280.0060.01016.34
7.3.270.0090.01517.40
7.3.260.0090.00916.36
7.3.250.0120.00616.45
7.3.240.0140.00316.54
7.3.230.0070.01016.39
7.3.210.0070.01016.54
7.3.200.0100.01319.39
7.3.190.0090.01316.39
7.3.180.0100.00716.47
7.3.170.0070.01016.29
7.3.160.0030.01316.41
7.3.120.0070.00714.75
7.3.10.0070.00716.11
7.3.00.0090.00616.26
7.2.330.0070.01116.48
7.2.320.0120.00616.67
7.2.310.0190.00416.39
7.2.300.0060.00916.61
7.2.290.0110.00716.62
7.2.130.0110.01016.45
7.2.120.0140.00616.52
7.2.110.0070.00616.59
7.2.100.0070.00716.79
7.2.90.0090.00616.64
7.2.80.0080.01016.47
7.2.70.0080.01016.75
7.2.60.0060.01016.61
7.2.50.0070.00716.63
7.2.40.0080.01016.68
7.2.30.0130.00716.42
7.2.20.0140.00716.71
7.2.10.0110.00616.43
7.2.00.0110.00617.60
7.1.250.0100.00515.55
7.1.240.0080.00615.58
7.1.230.0050.00815.48
7.1.220.0050.00715.56
7.1.210.0070.00915.53
7.1.200.0060.00715.46
7.1.190.0130.00715.61
7.1.180.0120.00715.64
7.1.170.0110.00915.53
7.1.160.0100.00215.52
7.1.150.0050.00915.48
7.1.140.0060.01215.28
7.1.130.0060.01015.34
7.1.120.0090.00315.16
7.1.110.0100.01015.52
7.1.100.0120.00716.39
7.1.90.0150.00215.57
7.1.80.0120.00515.66
7.1.70.0060.00816.06
7.1.60.0090.00816.81
7.1.50.0080.00815.89
7.1.40.0060.00715.70
7.1.30.0110.00315.52
7.1.20.0020.01315.57
7.1.10.0080.00715.38
7.1.00.0050.03117.70
7.0.330.0080.00815.02
7.0.320.0050.00815.03
7.0.310.0130.00715.10
7.0.300.0030.01115.10
7.0.290.0080.00815.22
7.0.280.0100.00715.21
7.0.270.0100.00415.10
7.0.260.0100.00614.95
7.0.250.0050.00915.28
7.0.240.0090.00815.21
7.0.230.0050.01015.09
7.0.220.0080.00715.24
7.0.210.0100.00715.15
7.0.200.0020.01015.51
7.0.190.0110.00715.28
7.0.180.0110.00815.03
7.0.170.0120.00315.23
7.0.160.0100.00715.10
7.0.150.0130.00515.03
7.0.140.0120.02617.58
7.0.130.0120.00315.19
7.0.120.0120.00715.21
7.0.110.0120.00715.25
7.0.100.0090.00615.40
7.0.90.0060.01115.35
7.0.80.0090.00715.46
7.0.70.0090.00715.16
7.0.60.0090.02916.73
7.0.50.0090.01616.18
7.0.40.0060.03515.62
7.0.30.0130.02015.50
7.0.20.0200.02515.43
7.0.10.0040.03615.55
7.0.00.0030.02115.59
5.6.380.0100.00714.15
5.6.370.0070.00714.20
5.6.360.0070.00514.24
5.6.350.0050.01113.94
5.6.340.0070.00914.33
5.6.330.0120.00514.13
5.6.320.0070.00814.07
5.6.310.0060.00614.30
5.6.300.0070.01214.28
5.6.290.0050.00914.07
5.6.280.0060.02916.56
5.6.270.0060.00714.23
5.6.260.0080.00713.93
5.6.250.0070.00814.28
5.6.240.0100.00714.15
5.6.230.0070.00914.12
5.6.220.0060.00314.05
5.6.210.0100.01616.12
5.6.200.0020.02815.54
5.6.190.0050.03216.31
5.6.180.0090.03316.18
5.6.170.0130.02416.25
5.6.160.0100.02516.40
5.6.150.0090.02315.47
5.6.140.0090.02715.47
5.6.130.0100.02915.52
5.6.120.0100.03216.37
5.6.110.0100.03416.29
5.6.100.0120.02216.27
5.6.90.0080.02216.31
5.6.80.0060.03616.22
5.6.70.0070.00314.19
5.6.60.0100.00113.92
5.6.50.0040.00814.00
5.6.40.0130.00514.17
5.6.30.0140.00714.22
5.6.20.0110.00914.08
5.6.10.0260.00714.16
5.6.00.0260.00614.13
5.5.380.0060.00811.09
5.5.370.0050.00710.93
5.5.360.0000.01110.77
5.5.350.1450.01914.11
5.5.340.0070.03013.33
5.5.330.0090.03014.19
5.5.320.0140.01414.18
5.5.310.0220.01514.10
5.5.300.0120.01913.53
5.5.290.0080.03213.33
5.5.280.0070.02114.44
5.5.270.0110.02814.28
5.5.260.0070.03414.48
5.5.250.0040.03314.15
5.5.240.0060.01413.99
5.5.230.0060.00210.81
5.5.220.0030.00510.75
5.5.210.0060.00110.78
5.5.200.0060.00510.91
5.5.190.0070.00510.95
5.5.180.0050.00410.99
5.5.170.0090.00310.85
5.5.160.0030.00510.86
5.5.150.0040.00610.82
5.5.140.0080.00510.97
5.5.130.0050.00711.13
5.5.120.0030.00710.69
5.5.110.0110.00110.71
5.5.100.0030.00710.74
5.5.90.0000.00911.01
5.5.80.0080.00010.76
5.5.70.0070.00410.76
5.5.60.0030.00811.01
5.5.50.0050.00710.86
5.5.40.0060.00110.99
5.5.30.0070.00510.95
5.5.20.0040.00610.96
5.5.10.0070.00510.92
5.5.00.0070.00310.77
5.4.450.0080.02913.84
5.4.440.0090.01613.79
5.4.430.0030.01913.75
5.4.420.0040.02313.62
5.4.410.0040.02913.77
5.4.400.0060.02113.67
5.4.390.0060.02713.67
5.4.380.0040.01713.65
5.4.370.0030.02613.64
5.4.360.0050.02113.52
5.4.350.0060.01513.65
5.4.340.0120.01313.55
5.4.330.0070.00510.96
5.4.320.0080.01513.79
5.4.310.0060.01813.55
5.4.300.0060.01813.59
5.4.290.0060.01713.52
5.4.280.0030.01713.55
5.4.270.0030.02813.56
5.4.260.0030.03113.61
5.4.250.0060.02813.64
5.4.240.0020.02113.70
5.4.230.0050.01513.37
5.4.220.0050.02913.51
5.4.210.0090.02413.54
5.4.200.0010.02813.64
5.4.190.0060.02413.56
5.4.180.0050.02813.43
5.4.170.0030.02213.66
5.4.160.0060.02513.51
5.4.150.0040.02613.54
5.4.140.0020.03112.49
5.4.130.0040.02712.58
5.4.120.0050.01812.63
5.4.110.0070.01812.73
5.4.100.0060.02612.71
5.4.90.0030.02712.62
5.4.80.0070.01712.64
5.4.70.0030.02912.59
5.4.60.0040.02712.44
5.4.50.0030.02212.70
5.4.40.0050.03012.59
5.4.30.0020.02912.57
5.4.20.0070.01912.81
5.4.10.0030.02812.72
5.4.00.0080.02812.49
5.3.290.0080.02811.91
5.3.280.0020.03011.88
5.3.270.0050.02211.80
5.3.260.0070.02411.98
5.3.250.0040.01511.84
5.3.240.0030.02911.87
5.3.230.0030.02811.87
5.3.220.0060.01711.85
5.3.210.0060.03011.77
5.3.200.0060.02711.79
5.3.190.0030.01911.84
5.3.180.0050.02811.97
5.3.170.0080.02311.97
5.3.160.0060.02312.03
5.3.150.0040.02911.92
5.3.140.0030.02911.92
5.3.130.0040.02811.95
5.3.120.0040.02811.80
5.3.110.0030.02011.98
5.3.100.0040.02711.74
5.3.90.0040.03011.75
5.3.80.0040.02411.63
5.3.70.0060.02511.65
5.3.60.0030.02811.70
5.3.50.0030.02011.70
5.3.40.0060.02411.55
5.3.30.0040.02811.52
5.3.20.0050.01811.47
5.3.10.0020.03011.53
5.3.00.0070.02011.42
5.2.170.0020.02210.55
5.2.160.0070.02110.56
5.2.150.0050.02210.56
5.2.140.0040.01510.63
5.2.130.0030.02410.65
5.2.120.0010.02110.67
5.2.110.0000.01910.55
5.2.100.0040.02210.64
5.2.90.0050.02310.63
5.2.80.0040.02510.52
5.2.70.0020.01810.61
5.2.60.0030.01410.49
5.2.50.0080.01010.62
5.2.40.0010.01310.59
5.2.30.0010.01310.59
5.2.20.0060.01110.58
5.2.10.0010.01210.57
5.2.00.0010.01310.48
5.1.60.0020.01010.31
5.1.50.0030.00910.23
5.1.40.0050.01010.36
5.1.30.0040.01110.41
5.1.20.0020.01310.29
5.1.10.0050.00910.27
5.1.00.0030.00910.29
5.0.50.0050.00610.10
5.0.40.0040.00810.10
5.0.30.0010.01410.10
5.0.20.0010.01110.10
5.0.10.0030.00810.10
5.0.00.0010.01410.10
4.4.90.0060.01410.10
4.4.80.0040.00610.10
4.4.70.0010.00810.10
4.4.60.0010.00910.10
4.4.50.0030.00610.10
4.4.40.0020.01010.10
4.4.30.0020.00710.10
4.4.20.0040.00510.10
4.4.10.0020.00610.10
4.4.00.0020.00910.10
4.3.110.0030.00710.10
4.3.100.0020.00710.10
4.3.90.0040.00510.10
4.3.80.0020.01010.10
4.3.70.0010.00710.10
4.3.60.0010.00710.10
4.3.50.0020.00710.10
4.3.40.0020.01110.10
4.3.30.0010.00710.10
4.3.20.0030.00810.10
4.3.10.0000.00810.10
4.3.00.0020.00610.10

preferences:
35.84 ms | 400 KiB | 5 Q