3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1_virgule() { $a = ''; for($i=0; $i<1000; ++$i) { echo $a,$i,"\n"; } } function f2_point() { $a = ''; for($i=0; $i<1000; ++$i) { echo $a.$i."\n"; } } $start = microtime(true); f2_point(); $stop = microtime(true); $time_point = $stop - $start; $start = microtime(true); f1_virgule(); $stop = microtime(true); $time_virgule = $stop - $start; echo 'time virgule : ' . $time_virgule . "\n"; echo 'time point : ' . $time_point . "\n"; echo 'time virgule > time time_point => ' . ($time_virgule > $time_point); ?>

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)
7.3.10.0060.01016.64
7.3.00.0070.00716.62
7.2.130.0040.01416.84
7.2.120.0110.00416.68
7.2.110.0100.00316.98
7.2.100.0130.00316.64
7.2.90.0080.00817.03
7.2.80.0080.00316.95
7.2.70.0130.00616.94
7.2.60.0070.01016.98
7.2.50.0090.00617.04
7.2.40.0100.00716.80
7.2.30.0030.01716.77
7.2.20.0030.01317.02
7.2.10.0100.00717.02
7.2.00.0040.01118.18
7.1.250.0070.00715.83
7.1.70.0040.00717.03
7.1.60.0130.01319.40
7.1.50.0170.00716.92
7.1.00.0030.04722.35
7.0.200.0740.00414.73
7.0.140.0130.06722.07
7.0.120.0070.07322.13
7.0.110.0230.04319.93
7.0.100.0230.06719.98
7.0.90.0230.05719.92
7.0.80.0100.07019.84
7.0.70.0130.04019.88
7.0.60.0130.07320.01
7.0.50.0100.08720.07
7.0.40.0130.06019.76
7.0.30.0070.07719.75
7.0.20.0100.05719.75
7.0.10.0130.07319.73
7.0.00.0130.07019.87
5.6.280.0100.07020.78
5.6.260.0130.08020.63
5.6.250.0170.08020.74
5.6.240.0000.09320.61
5.6.230.0130.08320.70
5.6.220.0170.07020.68
5.6.210.0100.07020.63
5.6.200.0130.07720.86
5.6.190.0230.04020.86
5.6.180.0170.07320.62
5.6.170.0130.07320.47
5.6.160.0130.07720.59
5.6.150.0100.07320.71
5.6.140.0100.07320.62
5.6.130.0000.09720.65
5.6.120.0200.07320.64
5.6.110.0070.08720.64
5.6.100.0100.08020.44
5.6.90.0070.08320.64
5.6.80.0000.04720.07
5.6.70.0130.07719.91
5.6.60.0130.10020.22
5.6.50.0100.07320.02
5.6.40.0070.08020.07
5.6.30.0100.07720.00
5.6.20.0070.07019.98
5.6.10.0170.07020.00
5.6.00.0130.06719.81
5.5.380.0130.08017.59
5.5.370.0100.07717.47
5.5.360.0170.06317.50
5.5.350.0130.06717.62
5.5.340.0100.08318.09
5.5.330.0130.05018.05
5.5.320.0130.08017.91
5.5.310.0100.07718.07
5.5.300.0100.08318.23
5.5.290.0130.07318.10
5.5.280.0070.05018.09
5.5.270.0170.05317.90
5.5.260.0130.08017.93
5.5.250.0030.05317.91
5.5.240.0100.03317.27
5.5.230.0100.06717.47
5.5.220.0230.05317.63
5.5.210.0070.08317.51
5.5.200.0130.06717.29
5.5.190.0100.07717.28
5.5.180.0130.06717.27
5.5.160.0100.04017.58
5.5.150.0070.07717.45
5.5.140.0000.07017.48
5.5.130.0070.08017.44
5.5.120.0030.07017.44
5.5.110.0100.07717.27
5.5.100.0170.07317.38
5.5.90.0130.07317.34
5.5.80.0100.03317.18
5.5.70.0000.04717.33
5.5.60.0030.03717.16
5.5.50.0030.04017.17
5.5.40.0030.04017.20
5.5.30.0030.04017.47
5.5.20.0070.03717.46
5.5.10.0030.04717.11
5.5.00.0100.03317.45
5.4.450.0170.05319.28
5.4.440.0200.07019.32
5.4.430.0070.06719.30
5.4.420.0070.06719.51
5.4.410.0100.07019.36
5.4.400.0070.07019.04
5.4.390.0070.06319.33
5.4.380.0170.04019.14
5.4.370.0100.07718.95
5.4.360.0100.07319.23
5.4.350.0170.06719.18
5.4.340.0170.07319.14
5.4.320.0000.04318.99
5.4.310.0100.07319.32
5.4.300.0070.04319.23
5.4.290.0030.08019.09
5.4.280.0200.06319.14
5.4.270.0100.07719.18
5.4.260.0130.07019.30
5.4.250.0030.05719.13
5.4.240.0170.02719.03
5.4.230.0070.03719.34
5.4.220.0100.03319.18
5.4.210.0070.03719.00
5.4.200.0070.03719.08
5.4.190.0100.03319.20
5.4.180.0030.03718.98
5.4.170.0070.05018.94
5.4.160.0100.03319.01
5.4.150.0100.03319.01
5.4.140.0100.03716.51
5.4.130.0070.03316.58
5.4.120.0070.03316.54
5.4.110.0070.03316.64
5.4.100.0070.03316.52
5.4.90.0070.03316.46
5.4.80.0000.04016.54
5.4.70.0070.03316.45
5.4.60.0100.03016.54
5.4.50.0070.03316.63
5.4.40.0030.03716.44
5.4.30.0030.03716.62
5.4.20.0000.05716.45
5.4.10.0130.07016.53
5.4.00.0070.07016.02
5.3.290.0070.08314.75
5.3.280.0000.04714.61
5.3.270.0030.04314.59
5.3.260.0030.04014.64
5.3.250.0070.03314.74
5.3.240.0030.03714.75
5.3.230.0070.03714.76
5.3.220.0100.03314.71
5.3.210.0070.04714.70
5.3.200.0070.04014.61
5.3.190.0100.03314.80
5.3.180.0100.03314.61
5.3.170.0030.03714.60
5.3.160.0030.03714.70
5.3.150.0070.03314.70
5.3.140.0170.03314.64
5.3.130.0070.04314.57
5.3.120.0070.07714.51
5.3.110.0070.06014.56
5.3.100.0000.04014.29
5.3.90.0000.04014.02
5.3.80.0070.07014.15
5.3.70.0070.05714.15
5.3.60.0130.05714.14
5.3.50.0200.05014.08
5.3.40.0100.06314.02
5.3.30.0130.05713.89
5.3.20.0100.06713.73
5.3.10.0170.07013.74
5.3.00.0070.05013.63
5.2.170.0100.06312.10
5.2.160.0130.05012.10
5.2.150.0030.06712.10
5.2.140.0170.06012.10
5.2.130.0030.03712.10
5.2.120.0100.06012.10
5.2.110.0000.07712.10
5.2.100.0100.05012.10
5.2.90.0070.05712.10
5.2.80.0070.06312.10
5.2.70.0100.06312.10
5.2.60.0130.02712.10
5.2.50.0100.05712.10
5.2.40.0170.05312.10
5.2.30.0070.06312.10
5.2.20.0030.03312.10
5.2.10.0170.03712.10
5.2.00.0100.04312.10
5.1.60.0070.04712.10
5.1.50.0100.05312.10
5.1.40.0070.05312.10
5.1.30.0070.03012.10
5.1.20.0070.05712.10
5.1.10.0070.05712.10
5.1.00.0130.04712.10
5.0.50.0070.04312.10
5.0.40.0070.04312.10
5.0.30.0030.05312.10
5.0.20.0070.04712.10
5.0.10.0070.04712.10
5.0.00.0170.06012.10
4.4.90.0030.02012.10
4.4.80.0100.02312.10
4.4.70.0030.02312.10
4.4.60.0100.03012.10
4.4.50.0030.04312.10
4.4.40.0070.05712.10
4.4.30.0100.03712.10
4.4.20.0100.03312.10
4.4.10.0000.03712.10
4.4.00.0030.03012.10
4.3.110.0070.03312.10
4.3.100.0070.03012.10
4.3.90.0070.02012.10
4.3.80.0030.03012.10
4.3.70.0000.03012.10
4.3.60.0100.01712.10
4.3.50.0170.02312.10
4.3.40.0070.05312.10
4.3.30.0030.04312.10
4.3.20.0100.03012.10
4.3.10.0000.02012.10
4.3.00.0030.02312.10

preferences:
40.99 ms | 401 KiB | 5 Q