3v4l.org

run code in 300+ PHP versions simultaneously
<?php $levers = array(array("comparateur-google_shopping", "comparateur", "trafic_payant"), array("display", "display", "trafic_payant"), array("email-auchanfr", "email_auchanfr", "email_auchanfr") ); $begin = 30; $end = 40; for ($i = $begin; $i <= $end; ++$i){ $index = rand(0,2); $query = "UPDATE IGNORE piwik_log_visit SET lever3='" . $levers[$index][0] . "', lever2='" . $levers[$index][1] . "', lever1='" . $levers[$index][2] . "' WHERE idvisit=" . $i . ";"; echo $query . "\n"; } //print_r($levers[rand(0,2)]);

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.4.10.0140.00316.58
7.4.00.0100.01015.85
7.3.130.0130.00616.36
7.3.120.0120.00915.57
7.3.110.0150.00615.48
7.3.100.0140.00815.58
7.3.90.0150.00915.49
7.3.80.0100.01115.54
7.3.70.0060.01315.43
7.3.60.0130.00815.59
7.3.50.0130.00715.65
7.3.40.0120.00815.61
7.3.30.0100.01115.55
7.3.20.0110.00617.54
7.3.10.0150.00417.28
7.3.00.0050.00717.41
7.2.260.0040.01816.68
7.2.250.0090.01415.79
7.2.240.0090.01315.99
7.2.230.0150.00615.75
7.2.220.0130.00915.75
7.2.210.0080.01515.73
7.2.200.0120.00615.88
7.2.190.0110.01115.78
7.2.180.0110.01215.87
7.2.170.0150.00915.97
7.2.160.0180.00016.45
7.2.150.0060.00618.48
7.2.140.0060.01018.36
7.2.130.0060.00918.45
7.2.120.0100.00618.53
7.2.110.0090.00318.43
7.2.100.0130.00318.45
7.2.90.0060.00618.35
7.2.80.0070.00418.36
7.2.70.0000.01418.34
7.2.60.0110.00418.27
7.2.50.0150.00318.24
7.2.40.0040.00718.43
7.2.30.0040.01118.60
7.2.20.0040.01518.29
7.2.10.0090.00318.52
7.2.00.0020.01318.85
7.1.330.0130.00516.49
7.1.320.0110.00816.57
7.1.310.0150.00716.55
7.1.300.0120.00816.46
7.1.290.0130.00816.53
7.1.280.0110.00816.46
7.1.270.0090.01016.68
7.1.260.0080.00816.59
7.1.250.0090.00617.26
7.1.240.0090.00617.23
7.1.230.0130.00317.40
7.1.220.0100.00717.38
7.1.210.0070.00717.31
7.1.200.0030.00617.24
7.1.190.0060.00917.34
7.1.180.0030.01317.05
7.1.170.0040.00717.43
7.1.160.0060.00917.34
7.1.150.0040.00817.25
7.1.140.0140.00317.38
7.1.130.0040.01117.26
7.1.120.0030.01317.23
7.1.110.0100.00717.32
7.1.100.0040.00917.17
7.1.90.0060.00917.24
7.1.80.0060.00917.32
7.1.70.0050.00717.32
7.1.60.0040.01017.29
7.1.50.0070.00917.18
7.1.40.0100.00317.23
7.1.30.0110.00717.35
7.1.20.0030.01317.50
7.1.10.0090.00917.36
7.1.00.0090.02819.84
7.0.330.0080.00516.87
7.0.320.0090.00617.04
7.0.310.0030.01516.88
7.0.300.0030.01016.88
7.0.290.0130.00017.02
7.0.280.0030.01016.96
7.0.270.0000.01516.93
7.0.260.0090.00617.06
7.0.250.0030.01017.10
7.0.240.0100.00017.11
7.0.230.0090.00616.96
7.0.220.0030.00717.05
7.0.210.0060.00617.02
7.0.200.0050.00916.88
7.0.190.0080.00416.90
7.0.180.0000.01616.99
7.0.170.0080.00817.06
7.0.160.0070.01116.99
7.0.150.0070.00717.10
7.0.140.0090.03919.53
7.0.130.0030.01317.07
7.0.120.0030.01416.97
7.0.110.0070.00716.85
7.0.100.0070.02218.49
7.0.90.0100.04918.50
7.0.80.0110.04618.38
7.0.70.0100.04918.35
7.0.60.0070.05018.34
7.0.50.0070.04818.66
7.0.40.0070.04717.45
7.0.30.0070.04017.49
7.0.20.0070.04517.55
7.0.10.0070.04017.45
7.0.00.0020.03917.53
5.6.400.0050.01216.09
5.6.390.0080.00815.82
5.6.380.0050.00515.96
5.6.370.0000.01216.08
5.6.360.0040.00715.82
5.6.350.0060.00816.08
5.6.340.0000.01315.96
5.6.330.0030.01315.75
5.6.320.0100.00615.93
5.6.310.0000.01515.78
5.6.300.0040.01415.98
5.6.290.0060.01316.06
5.6.280.0120.03318.53
5.6.270.0070.01016.16
5.6.260.0070.01116.06
5.6.250.0100.02718.16
5.6.240.0030.05418.22
5.6.230.0120.03818.26
5.6.220.0090.04118.30
5.6.210.0090.04118.25
5.6.200.0050.04318.46
5.6.190.0020.04818.50
5.6.180.0050.04918.49
5.6.170.0090.03718.30
5.6.160.0060.04818.53
5.6.150.0100.04318.44
5.6.140.0110.03818.53
5.6.130.0110.04318.43
5.6.120.0050.04718.48
5.6.110.0080.04518.38
5.6.100.0080.04018.39
5.6.90.0120.04218.35
5.6.80.0160.03618.06
5.6.70.0060.04518.08
5.6.60.0050.04818.13
5.6.50.0070.04418.14
5.6.40.0130.03617.99
5.6.30.0100.04218.00
5.6.20.0060.04318.03
5.6.10.0070.04218.10
5.6.00.0080.04518.06
5.5.380.0080.04018.12
5.5.370.0120.04218.20
5.5.360.0130.04017.97
5.5.350.0060.04418.11
5.5.340.0180.03518.37
5.5.330.0080.04618.43
5.5.320.0100.05218.36
5.5.310.0100.04318.43
5.5.300.0030.04618.30
5.5.290.0080.04218.33
5.5.280.0070.04818.32
5.5.270.0050.04918.40
5.5.260.0040.04518.37
5.5.250.0080.04518.13
5.5.240.0060.04418.02
5.5.230.0110.03817.97
5.5.220.0050.03817.85
5.5.210.0000.05218.01
5.5.200.0070.04018.01
5.5.190.0080.04518.01
5.5.180.0090.04118.01
5.5.170.0030.01315.61
5.5.160.0080.03318.00
5.5.150.0030.03817.84
5.5.140.0060.04317.88
5.5.130.0050.03717.91
5.5.120.0070.04118.03
5.5.110.0050.03717.94
5.5.100.0050.04417.99
5.5.90.0090.04017.97
5.5.80.0050.04517.85
5.5.70.0070.04217.96
5.5.60.0110.03817.87
5.5.50.0080.04317.84
5.5.40.0130.03917.85
5.5.30.0030.04517.88
5.5.20.0100.04317.90
5.5.10.0120.03917.92
5.5.00.0120.04217.83
5.4.450.0040.04716.34
5.4.440.0070.04416.38
5.4.430.0040.04416.48
5.4.420.0120.03616.42
5.4.410.0090.04116.41
5.4.400.0030.04716.17
5.4.390.0030.04316.26
5.4.380.0050.04216.34
5.4.370.0090.04116.32
5.4.360.0030.04116.29
5.4.350.0090.03516.18
5.4.340.0030.03516.26
5.4.330.0100.00613.54
5.4.320.0080.04016.33
5.4.310.0080.04016.22
5.4.300.0030.04316.25
5.4.290.0070.04016.30
5.4.280.0020.04416.34
5.4.270.0080.03816.22
5.4.260.0050.03316.32
5.4.250.0040.04216.30
5.4.240.0050.03416.26
5.4.230.0030.04716.26
5.4.220.0040.04416.31
5.4.210.0030.04316.34
5.4.200.0060.03816.33
5.4.190.0040.04316.30
5.4.180.0060.04316.22
5.4.170.0090.03916.25
5.4.160.0120.03116.24
5.4.150.0020.04716.28
5.4.140.0070.03814.92
5.4.130.0050.04014.88
5.4.120.0100.04014.89
5.4.110.0060.03315.00
5.4.100.0070.03215.02
5.4.90.0090.03514.94
5.4.80.0060.04014.88
5.4.70.0080.03014.99
5.4.60.0070.03714.94
5.4.50.0030.03914.88
5.4.40.0060.03815.00
5.4.30.0020.04714.97
5.4.20.0020.04614.89
5.4.10.0070.04014.95
5.4.00.0050.04114.66
5.3.290.0050.04214.09
5.3.280.0050.04114.04
5.3.270.0080.04014.06
5.3.260.0030.04314.06
5.3.250.0050.04214.00
5.3.240.0040.04014.07
5.3.230.0050.04314.00
5.3.220.0100.02313.99
5.3.210.0100.04014.04
5.3.200.0030.04314.04
5.3.190.0100.03813.98
5.3.180.0120.04014.03
5.3.170.0090.03514.03
5.3.160.0080.03114.05
5.3.150.0110.03614.05
5.3.140.0100.03914.05
5.3.130.0040.04414.05
5.3.120.0070.03714.05
5.3.110.0100.03714.04
5.3.100.0070.04213.79
5.3.90.0130.03213.74
5.3.80.0030.02613.71
5.3.70.0020.04213.75
5.3.60.0100.03613.75
5.3.50.0050.03813.74
5.3.40.0040.04213.72
5.3.30.0050.03813.68
5.3.20.0000.04613.55
5.3.10.0070.04013.57
5.3.00.0100.03413.52
5.2.170.0070.05311.24
5.2.160.0000.06711.24
5.2.150.0170.05311.24
5.2.140.0000.03711.24
5.2.130.0030.06011.24
5.2.120.0000.07011.24
5.2.110.0070.05711.24
5.2.100.0070.06311.24
5.2.90.0100.05711.24
5.2.80.0070.06011.24
5.2.70.0100.05711.24
5.2.60.0070.06711.24
5.2.50.0130.03011.24
5.2.40.0070.05711.24
5.2.30.0070.05011.24
5.2.20.0030.04011.24
5.2.10.0100.05311.24
5.2.00.0030.06011.24
5.1.60.0100.04011.24
5.1.50.0070.05011.24
5.1.40.0030.05311.24
5.1.30.0070.04711.24
5.1.20.0030.05311.24
5.1.10.0000.07311.24
5.1.00.0030.05011.24
5.0.50.0030.05011.24
5.0.40.0030.04711.24
5.0.30.0070.04711.24
5.0.20.0030.04711.24
5.0.10.0030.04711.24
5.0.00.0000.07011.24
4.4.90.0000.04011.24
4.4.80.0030.03011.24
4.4.70.0000.04011.24
4.4.60.0000.03311.24
4.4.50.0130.02311.24
4.4.40.0070.03711.24
4.4.30.0070.03011.24
4.4.20.0070.02311.24
4.4.10.0100.03011.24
4.4.00.0000.05711.24
4.3.110.0100.03311.24
4.3.100.0030.03311.24
4.3.90.0030.03311.24
4.3.80.0070.04711.24
4.3.70.0000.03711.24
4.3.60.0030.03311.24
4.3.50.0000.03711.24
4.3.40.0000.05711.24
4.3.30.0000.03711.24
4.3.20.0070.03011.24
4.3.10.0030.02711.24
4.3.00.0100.02711.24

preferences:
38.82 ms | 401 KiB | 5 Q