3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements Serializable { public $member, $message; function __construct($message) { $this->message = $message; } function serialize() { return serialize(array($this->message, $this->member)); } function unserialize($serialized) { list($this->message, $this->member) = unserialize($serialized); } } $constructed = new Test("original"); $constructed->member = $constructed; //References to self (in this example pointless, but technically legal) var_dump($constructed); $transported = unserialize(serialize($constructed)); // Segmentation fault.

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.00718.81
8.3.50.0110.00922.04
8.3.40.0180.00418.93
8.3.30.0150.00418.83
8.3.20.0060.00318.70
8.3.10.0050.00320.48
8.3.00.0050.00323.61
8.2.180.0110.00725.92
8.2.170.0090.00618.99
8.2.160.0110.00322.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.25
8.2.110.0090.00021.02
8.2.100.0040.00718.03
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0060.00317.93
8.2.60.0030.00518.05
8.2.50.0050.00518.10
8.2.40.0030.00620.50
8.2.30.0000.00718.01
8.2.20.0060.00317.66
8.2.10.0060.00317.64
8.2.00.0030.00617.75
8.1.280.0120.00625.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00623.92
8.1.230.0090.00320.33
8.1.220.0000.00817.77
8.1.210.0080.00018.77
8.1.200.0060.00317.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0030.00522.22
8.1.150.0000.00718.70
8.1.140.0040.00417.48
8.1.130.0030.00317.84
8.1.120.0000.00717.50
8.1.110.0050.00317.48
8.1.100.0000.00817.40
8.1.90.0000.00817.44
8.1.80.0050.00317.52
8.1.70.0070.00017.41
8.1.60.0080.00017.50
8.1.50.0060.00317.44
8.1.40.0080.00017.53
8.1.30.0040.00417.65
8.1.20.0040.00417.51
8.1.10.0000.00817.61
8.1.00.0030.00517.39
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.52
8.0.270.0030.00317.28
8.0.260.0000.00816.86
8.0.250.0000.00716.92
8.0.240.0030.00617.07
8.0.230.0000.00817.10
8.0.220.0030.00316.88
8.0.210.0000.00716.87
8.0.200.0030.00316.91
8.0.190.0040.00416.95
8.0.180.0040.00417.01
8.0.170.0040.00416.84
8.0.160.0030.00416.87
8.0.150.0000.00717.03
8.0.140.0030.00616.86
8.0.130.0000.00613.40
8.0.120.0000.00716.96
8.0.110.0080.00017.02
8.0.100.0030.00616.99
8.0.90.0050.00516.98
8.0.80.0100.00616.86
8.0.70.0000.00816.78
8.0.60.0070.00016.94
8.0.50.0040.00417.07
8.0.30.0110.00917.28
8.0.20.0120.00817.43
8.0.10.0040.00417.06
8.0.00.0070.01216.71
7.4.330.0000.00614.70
7.4.320.0000.00616.52
7.4.300.0060.00016.61
7.4.290.0000.00816.52
7.4.280.0070.00316.61
7.4.270.0000.00716.62
7.4.260.0000.00513.28
7.4.250.0040.00416.60
7.4.240.0080.00016.48
7.4.230.0040.00416.43
7.4.220.0120.00916.58
7.4.210.0090.00616.57
7.4.200.0040.00416.51
7.4.190.0070.00016.58
7.4.150.0130.01317.40
7.4.140.0120.01317.86
7.4.130.0140.00616.59
7.4.120.0100.01016.49
7.4.110.0100.01016.43
7.4.100.0150.00316.61
7.4.90.0150.00316.61
7.4.80.0060.01019.04
7.4.70.0190.00516.49
7.4.60.0080.00816.32
7.4.50.0000.00516.50
7.4.40.0040.01122.27
7.4.30.0070.01716.57
7.4.10.0080.01115.67
7.4.00.0080.00815.30
7.3.330.0030.00213.25
7.3.320.0050.00013.21
7.3.310.0000.00716.27
7.3.300.0000.00716.37
7.3.290.0030.01016.37
7.3.280.0080.01116.38
7.3.270.0130.00617.40
7.3.260.0110.01118.24
7.3.250.0070.01616.54
7.3.240.0110.00716.38
7.3.230.0100.00716.43
7.3.210.0080.00816.48
7.3.200.0070.01419.39
7.3.190.0140.00316.47
7.3.180.0040.01216.39
7.3.170.0100.00716.34
7.3.160.0090.00616.40
7.3.130.0090.00815.61
7.3.120.0030.01415.39
7.3.110.0060.01015.54
7.3.100.0090.00715.59
7.3.90.0070.00615.76
7.3.80.0020.00915.54
7.3.70.0050.01115.54
7.3.60.0100.00315.56
7.3.50.0110.00615.57
7.3.40.0080.00215.44
7.3.30.0100.00515.64
7.3.20.0070.00717.15
7.3.10.0050.01117.32
7.3.00.0090.00517.45
7.2.330.0100.00616.52
7.2.320.0110.00616.76
7.2.310.0110.01116.41
7.2.300.0000.01616.39
7.2.290.0100.00716.59
7.2.260.0080.00815.74
7.2.250.0070.01215.75
7.2.240.0050.00915.88
7.2.230.0070.01215.85
7.2.220.0070.00915.88
7.2.210.0020.01115.74
7.2.200.0050.01115.77
7.2.190.0030.01015.63
7.2.180.0050.01115.77
7.2.170.0050.00815.82
7.2.160.0050.01015.73
7.2.150.0070.01017.52
7.2.140.0030.01017.70
7.2.130.0020.01217.73
7.2.120.0020.01017.65
7.2.110.0060.00817.57
7.2.100.0040.01117.73
7.2.90.0080.00817.58
7.2.80.0060.00517.70
7.2.70.0060.00917.52
7.2.60.0080.00917.39
7.2.50.0100.00817.37
7.2.40.0070.00717.59
7.2.30.0090.00517.49
7.2.20.0050.01117.53
7.2.10.0040.00917.61
7.2.00.0050.00817.59
7.1.330.0100.00516.49
7.1.320.0040.01116.52
7.1.310.0060.00816.54
7.1.300.0060.00916.60
7.1.290.0040.00816.46
7.1.280.0050.00816.60
7.1.270.0100.00416.64
7.1.260.0070.01016.46
7.1.250.0060.00816.60
7.1.240.0050.00916.65
7.1.230.0050.00816.46
7.1.220.0050.00716.51
7.1.210.0080.00516.53
7.1.200.0060.00816.29
7.1.190.0070.00516.53
7.1.180.0070.00516.58
7.1.170.0110.00516.57
7.1.160.0050.00716.41
7.1.150.0020.01116.51
7.1.140.0070.00716.54
7.1.130.0050.00516.61
7.1.120.0030.01016.48
7.1.110.0020.01316.48
7.1.100.0060.00916.71
7.1.90.0080.00716.61
7.1.80.0050.00916.64
7.1.70.0060.00516.73
7.1.60.0020.01216.74
7.1.50.0080.00816.65
7.1.40.0070.00716.57
7.1.30.0090.00516.48
7.1.20.0080.00716.64
7.1.10.0050.00916.54
7.1.00.0030.03118.51
7.0.330.0020.00816.22
7.0.320.0070.00616.17
7.0.310.0070.00716.01
7.0.300.0060.01016.09
7.0.290.0050.00916.11
7.0.280.0080.00316.29
7.0.270.0080.00516.09
7.0.260.0040.00716.05
7.0.250.0000.01116.30
7.0.240.0030.01116.18
7.0.230.0030.01016.13
7.0.220.0060.00816.18
7.0.210.0030.01016.04
7.0.200.0050.00916.41
7.0.190.0070.00516.17
7.0.180.0040.00816.22
7.0.170.0020.01216.20
7.0.160.0050.00516.22
7.0.150.0050.00915.98
7.0.140.0030.03018.09
7.0.130.0060.00716.21
7.0.120.0100.00416.25
7.0.110.0050.01016.09
7.0.100.0050.00916.24
7.0.90.0050.01016.21
7.0.80.0050.00816.12
7.0.70.0050.01316.21
7.0.60.0060.03018.00
7.0.50.0080.02616.74
7.0.40.0060.02316.29
7.0.30.0150.02916.14
7.0.20.0110.03116.24
7.0.10.0060.01916.23
7.0.00.0040.02216.05
5.6.400.0040.00915.32
5.6.390.0060.00815.25
5.6.380.0020.01515.30
5.6.370.0070.00815.15
5.6.360.0090.00615.05
5.6.350.0050.01015.13
5.6.340.0050.00815.36
5.6.330.0070.00715.09
5.6.320.0050.00915.07
5.6.310.0090.00515.29
5.6.300.0080.00615.20
5.6.290.0060.00915.11
5.6.280.0030.00915.33
5.6.270.0070.00815.27
5.6.260.0060.00915.24
5.6.250.0090.00615.12
5.6.240.0100.00215.21
5.6.230.0070.00915.30
5.6.220.0050.01015.08
5.6.210.0080.02916.97
5.6.200.0070.03216.21
5.6.190.0050.03817.00
5.6.180.0100.02017.03
5.6.170.0160.03216.99
5.6.160.0070.02116.99
5.6.150.0020.02616.16
5.6.140.0080.02716.22
5.6.130.0080.02816.21
5.6.120.0080.03017.02
5.6.110.0080.02717.08
5.6.100.0050.01917.17
5.6.90.0040.02817.15
5.6.80.0110.02416.88
5.6.70.0070.00515.21
5.6.60.0100.00715.10
5.6.50.0050.00815.11
5.6.40.0030.00915.09
5.6.30.0110.00315.12
5.6.20.0080.00515.05
5.6.10.0080.00315.22
5.6.00.0030.01114.90
5.5.380.0080.01115.05
5.5.370.0100.00814.88
5.5.360.0070.01115.04
5.5.350.0080.03017.00
5.5.340.0060.03316.03
5.5.330.0070.01816.77
5.5.320.0170.02816.88
5.5.310.0160.03116.87
5.5.300.0040.03116.11
5.5.290.0080.02116.05
5.5.280.0090.02516.94
5.5.270.0060.03616.95
5.5.260.0060.02016.85
5.5.250.0050.03617.00
5.5.240.0120.02816.79
5.5.230.0050.01215.02
5.5.220.0070.01015.00
5.5.210.0080.00814.89
5.5.200.0040.00614.92
5.5.190.0060.00615.20
5.5.180.0090.00315.04
5.5.170.0070.00515.08
5.5.160.0040.01115.04
5.5.150.0100.00714.93
5.5.140.0060.01015.12
5.5.130.0050.00914.97
5.5.120.0100.00515.06
5.5.110.0020.01415.21
5.5.100.0070.00815.13
5.5.90.0060.00615.09
5.5.80.0120.00315.15
5.5.70.0060.00914.97
5.5.60.0050.00614.94
5.5.50.0000.01315.03
5.5.40.0070.00514.98
5.5.30.0100.00614.89
5.5.20.0020.01015.02
5.5.10.0020.01115.04
5.5.00.0080.00715.00
5.4.450.0060.03014.41
5.4.440.0040.02014.39
5.4.430.0030.01714.50
5.4.420.0090.02614.50
5.4.410.0070.03014.25
5.4.400.0050.03114.26
5.4.390.0040.02014.22
5.4.380.0050.02114.21
5.4.370.0070.01514.17
5.4.360.0040.03114.34
5.4.350.0080.02414.32
5.4.340.0050.02814.31
5.4.330.0000.01011.93
5.4.320.0070.02114.17
5.4.310.0060.03014.25
5.4.300.0080.01614.33
5.4.290.0090.01214.28
5.4.280.0050.02914.30
5.4.270.0050.02614.31
5.4.260.0090.02714.38
5.4.250.0020.03214.32
5.4.240.0060.02814.29
5.4.230.0040.02914.36
5.4.220.0060.02614.22
5.4.210.0030.01914.27
5.4.200.0070.02814.32
5.4.190.0090.01914.26
5.4.180.0040.02214.24
5.4.170.0050.03114.31
5.4.160.0030.02314.26
5.4.150.0030.01814.26
5.4.140.0030.02013.37
5.4.130.0040.02513.30
5.4.120.0050.03013.38
5.4.110.0090.01813.34
5.4.100.0030.03013.38
5.4.90.0070.02313.35
5.4.80.0010.03113.41
5.4.70.0030.01913.34
5.4.60.0050.01613.35
5.4.50.0040.01613.35
5.4.40.0070.01613.36
5.4.30.0030.02713.37
5.4.20.0060.02413.41
5.4.10.0080.01613.41
5.4.00.0060.02813.24
5.3.290.0130.08028.94
5.3.280.0200.07328.51
5.3.270.0100.04728.50
5.3.260.0200.05328.54
5.3.250.0170.07328.43
5.3.240.0100.04028.49
5.3.230.0200.04328.52
5.3.220.0130.06328.20
5.3.210.0070.06028.16
5.3.200.0170.07728.21
5.3.190.0170.08328.22
5.3.180.0230.07328.18
5.3.170.0170.06328.17
5.3.160.0130.03328.18
5.3.150.0100.07328.23
5.3.140.0130.08328.26
5.3.130.0170.07728.24
5.3.120.0200.06328.20
5.3.110.0100.08028.28
5.3.100.0100.06027.69
5.3.90.0170.07727.86
5.3.80.0230.06727.57
5.3.70.0100.08027.50
5.3.60.0130.06727.72
5.3.50.0200.05727.54
5.3.40.0100.05027.62
5.3.30.0200.06327.47
5.3.20.0130.08027.31
5.3.10.0170.04327.30
5.3.00.0130.04727.31
5.2.170.0130.04723.58
5.2.160.0170.04723.67
5.2.150.0070.07023.50
5.2.140.0070.03323.57
5.2.130.0100.03023.56
5.2.120.0130.04323.52
5.2.110.0130.06023.57
5.2.100.0070.06023.65
5.2.90.0070.04723.57
5.2.80.0000.04323.56
5.2.70.0200.05723.60
5.2.60.0100.07023.58
5.2.50.0100.06323.64
5.2.40.0070.05023.50
5.2.30.0030.04023.46
5.2.20.0170.06723.49
5.2.10.0100.05723.59
5.2.00.0170.06323.41
5.1.60.0070.06023.77
5.1.50.0100.06023.64
5.1.40.0070.05323.58
5.1.30.0200.05324.16
5.1.20.0100.06324.13
5.1.10.0100.05023.82
5.1.00.0070.05710.05
5.0.50.0000.0408.63
5.0.40.0030.0308.50
5.0.30.0000.0708.50
5.0.20.0000.0338.50
5.0.10.0070.0208.50
5.0.00.0070.0638.50
4.4.90.0000.0378.50
4.4.80.0030.0378.50
4.4.70.0000.0208.50
4.4.60.0000.0308.50
4.4.50.0030.0338.50
4.4.40.0000.0578.50
4.4.30.0030.0278.50
4.4.20.0000.0378.50
4.4.10.0030.0278.50
4.4.00.0000.0438.50
4.3.110.0030.0178.50
4.3.100.0030.0308.50
4.3.90.0030.0338.50
4.3.80.0030.0538.50
4.3.70.0030.0338.50
4.3.60.0030.0378.50
4.3.50.0000.0378.50
4.3.40.0030.0578.50
4.3.30.0000.0308.50
4.3.20.0070.0338.50
4.3.10.0000.0338.50
4.3.00.0030.0278.50

preferences:
48.84 ms | 401 KiB | 5 Q