3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = str_repeat('a', 50000); $serialized = serialize($str); var_dump($serialized); var_dump(unserialize($serialized));

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.0060.01018.31
8.3.50.0140.00521.92
8.3.40.0070.00718.59
8.3.30.0070.00719.05
8.3.20.0050.00220.46
8.3.10.0040.00423.70
8.3.00.0040.00420.82
8.2.180.0100.01016.38
8.2.170.0070.00722.96
8.2.160.0060.00622.31
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00720.93
8.2.110.0170.00322.21
8.2.100.0100.00317.91
8.2.90.0000.00719.32
8.2.80.0020.00517.97
8.2.70.0050.00517.63
8.2.60.0070.00018.03
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0030.00318.23
8.2.20.0000.00717.81
8.2.10.0000.00717.80
8.2.00.0040.00417.82
8.1.280.0070.00725.92
8.1.270.0000.00823.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00823.79
8.1.230.0080.00319.30
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0050.00317.36
8.1.190.0030.00517.66
8.1.180.0050.00218.10
8.1.170.0040.00418.66
8.1.160.0030.00322.17
8.1.150.0030.00318.86
8.1.140.0050.00217.65
8.1.130.0030.00318.04
8.1.120.0000.00817.66
8.1.110.0070.00317.53
8.1.100.0000.00717.50
8.1.90.0000.00617.52
8.1.80.0000.00717.61
8.1.70.0070.00017.52
8.1.60.0050.00217.74
8.1.50.0040.00417.58
8.1.40.0000.00717.71
8.1.30.0040.00417.77
8.1.20.0050.00317.79
8.1.10.0000.00817.58
8.1.00.0040.00417.59
8.0.300.0030.00318.77
8.0.290.0030.00316.92
8.0.280.0030.00318.50
8.0.270.0000.00717.35
8.0.260.0060.00016.72
8.0.250.0000.00616.89
8.0.240.0030.00316.81
8.0.230.0030.00316.97
8.0.220.0060.00016.81
8.0.210.0030.00316.99
8.0.200.0030.00317.01
8.0.190.0030.00316.93
8.0.180.0050.00216.95
8.0.170.0000.00716.88
8.0.160.0030.00316.82
8.0.150.0000.00616.78
8.0.140.0070.00016.80
8.0.130.0050.00013.38
8.0.120.0000.00816.90
8.0.110.0030.00316.87
8.0.100.0000.00716.73
8.0.90.0040.00416.92
8.0.80.0100.00716.80
8.0.70.0070.00016.71
8.0.60.0000.00716.75
8.0.50.0000.00716.77
8.0.30.0090.00917.04
8.0.20.0130.00517.40
8.0.10.0030.00316.93
8.0.00.0130.00716.65
7.4.330.0050.00015.01
7.4.320.0030.00316.52
7.4.300.0060.00016.48
7.4.290.0070.00016.49
7.4.280.0050.00316.57
7.4.270.0030.00316.64
7.4.260.0030.00316.43
7.4.250.0040.00416.51
7.4.240.0020.00516.35
7.4.230.0060.00016.60
7.4.220.0180.00316.50
7.4.210.0090.00616.57
7.4.200.0030.00316.45
7.4.190.0000.00716.43
7.4.160.0140.00316.64
7.4.150.0140.00417.40
7.4.140.0130.00517.86
7.4.130.0090.01216.44
7.4.120.0090.00716.50
7.4.110.0140.00716.53
7.4.100.0100.00716.45
7.4.90.0030.01416.49
7.4.80.0130.00716.42
7.4.70.0130.00316.60
7.4.60.0030.01316.38
7.4.50.0080.00016.57
7.4.40.0090.00322.77
7.4.30.0070.01016.49
7.4.00.0060.00614.44
7.3.330.0050.00013.02
7.3.320.0020.00213.11
7.3.310.0060.00016.25
7.3.300.0030.00316.18
7.3.290.0130.00316.25
7.3.280.0130.00316.22
7.3.270.0060.00917.40
7.3.260.0060.01316.14
7.3.250.0090.01516.36
7.3.240.0150.00016.36
7.3.230.0100.01016.39
7.3.210.0140.00616.16
7.3.200.0090.00919.39
7.3.190.0120.00916.19
7.3.180.0050.01116.26
7.3.170.0040.01116.36
7.3.160.0090.01016.47
7.3.120.0030.01314.69
7.2.330.0060.01016.59
7.2.320.0120.00816.59
7.2.310.0140.00416.58
7.2.300.0070.01016.59
7.2.290.0080.00816.28
7.1.200.0030.00615.70
7.1.100.0030.00917.61
7.1.70.0040.01116.80
7.1.60.0070.01019.32
7.1.50.0040.01816.87
7.0.200.0110.00016.74

preferences:
53.47 ms | 400 KiB | 5 Q