3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { //$data = str_repeat('.', 1000000); //echo strlen(serialize($data)); //echo strlen(serialize(str_repeat('.', 1000000))); $data = serialize(str_repeat('.', 1000000)); echo strlen($data); } test(); echo PHP_EOL, memory_get_peak_usage(), PHP_EOL;

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.0140.01018.50
8.3.50.0140.00922.99
8.3.40.0100.00720.29
8.3.30.0070.01020.67
8.3.20.0130.00322.09
8.3.10.0000.00925.55
8.3.00.0080.00021.83
8.2.180.0140.00718.13
8.2.170.0100.00722.96
8.2.160.0090.00622.27
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00023.21
8.2.120.0030.00626.35
8.2.110.0090.00024.22
8.2.100.0030.01019.59
8.2.90.0100.00020.97
8.2.80.0030.00619.38
8.2.70.0060.00319.47
8.2.60.0080.00019.80
8.2.50.0080.00019.25
8.2.40.0060.00323.36
8.2.30.0040.00422.63
8.2.20.0040.00419.44
8.2.10.0040.00419.88
8.2.00.0000.00819.86
8.1.280.0130.00625.92
8.1.270.0100.00022.26
8.1.260.0090.00028.09
8.1.250.0050.00528.09
8.1.240.0070.01324.91
8.1.230.0080.00422.85
8.1.220.0040.00419.43
8.1.210.0000.01118.86
8.1.200.0030.00719.10
8.1.190.0000.00819.13
8.1.180.0060.00319.28
8.1.170.0000.00820.37
8.1.160.0000.00822.29
8.1.150.0040.00420.48
8.1.140.0060.00321.22
8.1.130.0050.00519.41
8.1.120.0030.00519.11
8.1.110.0000.00819.02
8.1.100.0090.00019.01
8.1.90.0040.00419.05
8.1.80.0040.00419.08
8.1.70.0040.00419.00
8.1.60.0120.00019.31
8.1.50.0060.00319.25
8.1.40.0050.00519.14
8.1.30.0060.00319.29
8.1.20.0000.00819.33
8.1.10.0040.00419.12
8.1.00.0030.00519.13
8.0.300.0040.00418.77
8.0.290.0030.00618.63
8.0.280.0080.00020.03
8.0.270.0000.00818.83
8.0.260.0050.00218.85
8.0.250.0040.00418.44
8.0.240.0070.00018.41
8.0.230.0000.00818.56
8.0.220.0040.00418.30
8.0.210.0000.00818.30
8.0.200.0000.00818.45
8.0.190.0060.00318.51
8.0.180.0080.00018.35
8.0.170.0040.00418.45
8.0.160.0040.00418.48
8.0.150.0040.00418.40
8.0.140.0030.00518.40
8.0.130.0050.00214.95
8.0.120.0080.00018.36
8.0.110.0100.00018.34
8.0.100.0040.00418.25
8.0.90.0040.00418.29
8.0.80.0000.01818.38
8.0.70.0030.00618.24
8.0.60.0030.00518.23
8.0.50.0060.00318.24
8.0.30.0120.00918.51
8.0.20.0160.00818.45
8.0.10.0000.00918.49
8.0.00.0110.01118.39
7.4.330.0050.00018.75
7.4.320.0000.00818.06
7.4.300.0000.00718.03
7.4.290.0070.00018.05
7.4.280.0040.00418.15
7.4.270.0070.00018.11
7.4.260.0050.00318.05
7.4.250.0000.00818.11
7.4.240.0020.00618.04
7.4.230.0080.00018.14
7.4.220.0130.00718.03
7.4.210.0050.01118.21
7.4.200.0040.00417.96
7.4.160.0070.01418.24
7.4.150.0150.00718.11
7.4.140.0130.01218.11
7.4.130.0100.01418.00
7.4.120.0110.00918.07
7.4.110.0130.00618.05
7.4.100.0170.00318.07
7.4.90.0170.00318.14
7.4.80.0060.01519.39
7.4.70.0060.01218.08
7.4.60.0090.00918.14
7.4.50.0070.00718.08
7.4.40.0100.01018.03
7.4.30.0060.01218.24
7.4.00.0110.00716.48
7.3.330.0060.00014.97
7.3.320.0060.00014.90
7.3.310.0060.00318.01
7.3.300.0050.00217.80
7.3.290.0040.00417.82
7.3.280.0110.00817.88
7.3.270.0110.01117.82
7.3.260.0120.00817.98
7.3.250.0130.00817.98
7.3.240.0100.01018.14
7.3.230.0100.01017.84
7.3.210.0150.00917.98
7.3.200.0110.00817.85
7.3.190.0040.01418.15
7.3.180.0100.01017.92
7.3.170.0170.00617.84
7.3.160.0130.01017.80
7.2.330.0170.00318.10
7.2.320.0030.01617.93
7.2.310.0120.00618.21
7.2.300.0090.00917.83
7.2.290.0120.00918.04
7.2.60.0060.00918.49
7.2.00.0030.01021.23
7.1.200.0030.00917.43
7.1.100.0040.00720.27
7.1.70.0180.00419.05
7.1.60.0070.02019.52
7.1.50.0230.01736.95
7.1.00.0030.07724.48
7.0.200.0000.00818.61
7.0.60.0070.07721.57
7.0.50.0030.08719.70
7.0.40.0030.09020.24
7.0.30.0270.08320.30
7.0.20.0270.08320.22
7.0.10.0030.06720.09
7.0.00.0030.04020.16
5.6.280.0000.03722.59
5.6.210.0130.07722.27
5.6.200.0000.09319.96
5.6.190.0130.07722.16
5.6.180.0230.03322.20
5.6.170.0470.07322.13
5.6.160.0100.04022.20
5.6.150.0000.04719.91
5.6.140.0070.05319.93
5.6.130.0030.08019.94
5.6.120.0130.08022.79
5.6.110.0130.07722.70
5.6.100.0100.06722.80
5.6.90.0070.08322.80
5.6.80.0070.08022.09
5.5.350.0400.07022.09
5.5.340.0000.08019.77
5.5.330.0100.07321.97
5.5.320.0500.05322.04
5.5.310.0230.03721.99
5.5.300.0070.04019.72
5.5.290.0100.04719.71
5.5.280.0070.07322.77
5.5.270.0070.05722.57
5.5.260.0070.04322.67
5.5.250.0100.06722.29
5.5.240.3330.04022.06

preferences:
56.19 ms | 401 KiB | 5 Q