3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="foo bar baz -> see spaces here at the end of this line >> this is ok >> Now I'll type a few spaces and nothing else on the following line: I did type them but they get removed. Let's try again: no way. ";

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.0040.01116.75
8.3.50.0080.00821.91
8.3.40.0060.01218.50
8.3.30.0080.00618.96
8.3.20.0040.00420.30
8.3.10.0030.00523.71
8.3.00.0080.00020.98
8.2.180.0100.00718.16
8.2.170.0080.00822.96
8.2.160.0090.00620.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.60
8.2.110.0090.00022.21
8.2.100.0040.00817.84
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0070.00317.63
8.2.60.0000.00717.80
8.2.50.0030.00518.07
8.2.40.0080.00021.08
8.2.30.0000.00718.24
8.2.20.0000.00717.65
8.2.10.0000.00718.04
8.2.00.0080.00017.59
8.1.280.0110.00425.92
8.1.270.0030.00624.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.06
8.1.230.0070.00418.97
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0030.00717.22
8.1.180.0040.00418.10
8.1.170.0040.00418.56
8.1.160.0070.00021.80
8.1.150.0040.00418.48
8.1.140.0070.00017.48
8.1.130.0030.00317.74
8.1.120.0030.00317.39
8.1.110.0040.00317.32
8.1.100.0050.00317.38
8.1.90.0070.00017.41
8.1.80.0030.00517.27
8.1.70.0000.00817.26
8.1.60.0000.00817.39
8.1.50.0040.00417.34
8.1.40.0040.00417.45
8.1.30.0000.00817.49
8.1.20.0030.00617.43
8.1.10.0000.00717.44
8.1.00.0110.00017.22
8.0.300.0030.00518.77
8.0.290.0040.00417.02
8.0.280.0000.00718.37
8.0.270.0000.00717.09
8.0.260.0030.00317.20
8.0.250.0030.00316.75
8.0.240.0030.00616.77
8.0.230.0030.00316.90
8.0.220.0000.00716.75
8.0.210.0050.00316.87
8.0.200.0060.00316.80
8.0.190.0000.00716.74
8.0.180.0050.00316.85
8.0.170.0040.00416.82
8.0.160.0000.00816.79
8.0.150.0000.00716.64
8.0.140.0030.00516.67
8.0.130.0000.00813.25
8.0.120.0080.00016.75
8.0.110.0050.00216.88
8.0.100.0030.00316.83
8.0.90.0070.00016.83
8.0.80.0110.00316.76
8.0.70.0000.00816.67
8.0.60.0050.00316.67
8.0.50.0040.00416.66
8.0.30.0110.01117.01
8.0.20.0090.00917.40
8.0.10.0000.00716.72
8.0.00.0110.00716.59
7.4.330.0050.00015.00
7.4.320.0030.00316.43
7.4.300.0050.00216.35
7.4.290.0070.00016.43
7.4.280.0070.00016.34
7.4.270.0000.00716.43
7.4.260.0040.00416.52
7.4.250.0040.00416.47
7.4.240.0040.00316.50
7.4.230.0000.00816.61
7.4.220.0180.00016.37
7.4.210.0090.00616.48
7.4.200.0070.00016.31
7.4.190.0000.00716.50
7.4.160.0120.00416.59
7.4.150.0000.01717.40
7.4.140.0110.01017.86
7.4.130.0080.00916.36
7.4.120.0100.00716.41
7.4.110.0100.00716.56
7.4.100.0090.00916.48
7.4.90.0090.00916.39
7.4.80.0030.01419.39
7.4.70.0090.00616.35
7.4.60.0100.00616.42
7.4.50.0030.00616.24
7.4.40.0130.00316.25
7.4.30.0110.00516.57
7.4.00.0070.00715.00
7.3.330.0050.00012.89
7.3.320.0000.00512.86
7.3.310.0000.00816.19
7.3.300.0000.00715.98
7.3.290.0090.00616.16
7.3.280.0110.00816.12
7.3.270.0080.00917.40
7.3.260.0090.00916.04
7.3.250.0080.01116.27
7.3.240.0100.00716.01
7.3.230.0100.00716.39
7.3.210.0100.00716.33
7.3.200.0100.00719.39
7.3.190.0130.00316.52
7.3.180.0090.00616.11
7.3.170.0110.00716.27
7.3.160.0060.01016.10
7.3.120.0100.00614.56
7.2.330.0110.00716.39
7.2.320.0000.01816.52
7.2.310.0060.01016.14
7.2.300.0060.00916.29
7.2.290.0120.00416.53
7.1.70.0000.00816.78
7.1.60.0070.01719.46
7.1.50.0130.00916.86
7.1.00.0030.07722.41
7.0.200.0070.00016.48
7.0.140.0100.07022.18
7.0.60.0100.07719.92
7.0.50.0030.05317.88
7.0.40.0030.06019.90
7.0.30.0130.04320.21
7.0.20.0270.07720.00
7.0.10.0070.04320.34
7.0.00.0100.04020.19
5.6.280.0170.06020.98
5.6.210.0170.07320.70
5.6.200.0100.08018.13
5.6.190.0100.08320.48
5.6.180.0170.03320.53
5.6.170.0270.07320.46
5.6.160.0070.04020.54
5.6.150.0070.08018.12
5.6.140.0170.04318.16
5.6.130.0030.09018.14
5.6.120.0100.03720.97
5.6.110.0030.04721.01
5.6.100.0030.08721.10
5.6.90.0170.06320.99
5.6.80.0030.08020.33
5.5.350.3800.04320.42
5.5.340.0100.04717.89
5.5.330.0070.08320.53
5.5.320.0330.07020.21
5.5.310.0270.06320.43
5.5.300.0100.08018.01
5.5.290.0030.08717.96
5.5.280.0030.04020.87
5.5.270.0200.06720.78
5.5.260.0000.09320.80
5.5.250.0070.07020.56
5.5.240.0030.03720.34
5.4.450.0370.05019.84
5.4.440.0130.05019.40
5.4.430.0170.04319.09
5.4.420.0270.04019.10
5.4.410.0200.04019.28
5.4.400.0330.04019.14
5.4.390.0300.03719.24
5.4.380.0170.05318.59
5.4.370.0200.05018.67
5.4.360.0270.04318.79
5.4.350.0200.05018.64
5.4.340.0170.05318.60
5.4.320.0080.04812.45
5.4.310.0060.03712.45
5.4.300.0040.04412.45
5.4.290.0090.04112.45
5.4.280.0100.04012.34
5.4.270.0070.03912.34
5.4.260.0060.04212.34
5.4.250.0080.04112.35
5.4.240.0100.04012.34
5.4.230.0080.04412.34
5.4.220.0080.04212.34
5.4.210.0070.04012.34
5.4.200.0090.04612.34
5.4.190.0070.04712.33
5.4.180.0140.04912.34
5.4.170.0060.06212.34
5.4.160.0090.04412.34
5.4.150.0040.04212.34
5.4.140.0070.04512.02
5.4.130.0090.03912.01
5.4.120.0100.03911.97
5.4.110.0050.04411.96
5.4.100.0070.04211.96
5.4.90.0060.04411.96
5.4.80.0090.04011.96
5.4.70.0070.03811.96
5.4.60.0070.04011.96
5.4.50.0110.03611.96
5.4.40.0070.04211.95
5.4.30.0110.03811.95
5.4.20.0100.04011.95
5.4.10.0110.03711.95
5.4.00.0080.03911.43
5.3.290.0080.03912.80
5.3.280.0090.04312.71
5.3.270.0070.04812.72
5.3.260.0060.05012.71
5.3.250.0070.04612.72
5.3.240.0080.04512.72
5.3.230.0130.04612.71
5.3.220.0090.04212.68
5.3.210.0120.04912.68
5.3.200.0130.04312.68
5.3.190.0160.09012.68
5.3.180.0210.05512.68
5.3.170.0100.05712.66
5.3.160.0110.04212.67
5.3.150.0100.04512.67
5.3.140.0060.04612.66
5.3.130.0110.04512.66
5.3.120.0070.06412.66
5.3.110.0080.05612.66
5.3.100.0080.05412.12
5.3.90.0100.06112.08
5.3.80.0080.05812.07
5.3.70.0250.09212.07
5.3.60.0080.05612.07
5.3.50.0080.05412.00
5.3.40.0110.05112.00
5.3.30.0100.06311.94
5.3.20.0110.04711.72
5.3.10.0100.05911.69
5.3.00.0100.04611.68

preferences:
62.86 ms | 400 KiB | 5 Q