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.0070.01114.88
7.4.00.0070.00815.01
7.3.130.0060.01314.84
7.3.120.0070.01014.82
7.3.110.0070.01114.67
7.3.100.0060.00614.59
7.3.90.0090.00014.75
7.3.80.0030.01414.86
7.3.70.0000.01314.58
7.3.60.0060.00914.89
7.3.50.0030.01014.53
7.3.40.0070.00714.77
7.3.30.0070.00314.87
7.3.20.0070.01016.68
7.3.10.0030.01316.71
7.3.00.0070.01116.49
7.2.260.0130.00015.23
7.2.250.0030.01315.20
7.2.240.0030.01415.02
7.2.230.0070.01114.97
7.2.220.0060.01014.90
7.2.210.0000.01514.96
7.2.200.0100.00614.73
7.2.190.0070.01115.09
7.2.180.0060.01215.03
7.2.170.0090.00615.02
7.2.160.0120.00615.23
7.2.150.0040.00817.04
7.2.140.0120.00616.78
7.2.130.0110.00616.91
7.2.120.0060.01017.02
7.2.110.0030.01216.79
7.2.100.0030.01316.91
7.2.90.0000.01217.18
7.2.80.0030.01316.86
7.2.70.0070.01116.90
7.2.60.0070.00717.03
7.2.50.0070.01116.91
7.2.40.0060.00917.07
7.2.30.0070.00716.73
7.2.20.0070.00716.80
7.2.10.0060.00617.12
7.2.00.0090.00517.93
7.1.330.0090.00615.70
7.1.320.0120.00315.79
7.1.310.0030.01215.57
7.1.300.0030.01015.87
7.1.290.0040.00815.48
7.1.280.0090.00615.62
7.1.270.0070.00715.71
7.1.260.0070.00715.83
7.1.250.0040.01215.74
7.1.240.0060.00615.64
7.1.230.0070.00715.82
7.1.220.0030.01215.68
7.1.210.0120.00415.90
7.1.200.0030.00715.83
7.1.190.0000.01315.67
7.1.180.0080.00415.75
7.1.170.0060.00615.65
7.1.160.0080.00615.50
7.1.150.0100.00615.81
7.1.140.0030.00915.80
7.1.130.0090.00615.75
7.1.120.0030.00915.53
7.1.110.0070.00715.83
7.1.100.0090.00615.84
7.1.90.0100.00615.61
7.1.80.0030.01015.76
7.1.70.0060.00616.38
7.1.60.0020.01416.58
7.1.50.0050.01316.56
7.1.40.0060.00615.91
7.1.30.0040.00715.83
7.1.20.0040.00815.74
7.1.10.0000.01115.81
7.1.00.0030.03018.98
7.0.330.0070.00415.52
7.0.320.0120.00315.20
7.0.310.0070.00315.42
7.0.300.0060.00615.14
7.0.290.0090.00615.35
7.0.280.0090.00915.41
7.0.270.0030.01015.41
7.0.260.0060.00615.38
7.0.250.0040.00815.31
7.0.240.0030.01315.56
7.0.230.0000.00815.44
7.0.220.0070.00315.26
7.0.210.0130.00315.35
7.0.200.0050.00715.92
7.0.190.0060.00915.52
7.0.180.0040.00715.40
7.0.170.0060.00915.28
7.0.160.0100.00615.44
7.0.150.0060.00615.20
7.0.140.0050.04018.65
7.0.130.0070.00315.41
7.0.120.0060.00615.25
7.0.110.0030.02717.69
7.0.100.0090.02018.46
7.0.90.0050.02218.46
7.0.80.0030.02518.59
7.0.70.0040.02318.50
7.0.60.0060.02318.59
7.0.50.0070.02218.76
7.0.40.0030.04316.75
7.0.30.0020.04416.76
7.0.20.0100.02716.64
7.0.10.0050.04716.80
7.0.00.0060.04516.87
5.6.400.0030.01014.14
5.6.390.0060.00914.50
5.6.380.0060.00914.25
5.6.370.0080.00814.56
5.6.360.0100.00314.52
5.6.350.0120.00014.57
5.6.340.0060.00614.36
5.6.330.0100.00714.50
5.6.320.0000.01414.51
5.6.310.0060.00814.50
5.6.300.0060.00614.35
5.6.290.0070.00714.63
5.6.280.0050.04217.57
5.6.270.0060.00914.27
5.6.260.0060.03317.55
5.6.250.0060.02517.57
5.6.240.0030.03817.39
5.6.230.0030.02617.32
5.6.220.0050.02317.38
5.6.210.0050.02517.29
5.6.200.0040.02317.70
5.6.190.0040.03717.83
5.6.180.0050.04317.83
5.6.170.0060.04217.69
5.6.160.0070.04817.70
5.6.150.0070.05317.65
5.6.140.0110.04017.62
5.6.130.0060.03517.74
5.6.120.0070.04317.63
5.6.110.0080.04517.61
5.6.100.0070.04517.58
5.6.90.0100.04517.71
5.6.80.0080.04117.49
5.6.70.0080.04017.33
5.6.60.0030.04517.22
5.6.50.0070.04017.48
5.6.40.0050.04317.32
5.6.30.0090.04217.47
5.6.20.0140.03517.43
5.6.10.0090.03917.31
5.6.00.0050.03917.15
5.5.380.0050.02017.45
5.5.370.0120.02217.42
5.5.360.0030.02617.34
5.5.350.0070.02217.34
5.5.340.0030.02517.68
5.5.330.0090.04517.76
5.5.320.0070.04117.49
5.5.310.0020.04917.60
5.5.300.0130.04017.53
5.5.290.0070.04517.57
5.5.280.0130.03717.31
5.5.270.0090.04617.63
5.5.260.0050.04617.47
5.5.250.0050.04717.55
5.5.240.0030.04517.15
5.5.230.0090.03417.18
5.5.220.0080.03117.21
5.5.210.0070.04417.14
5.5.200.0050.04317.14
5.5.190.0140.03317.27
5.5.180.0030.04817.17
5.5.170.0040.01114.50
5.5.160.0090.03717.21
5.5.150.0050.04417.20
5.5.140.0150.02117.15
5.5.130.0030.03217.03
5.5.120.0030.04917.37
5.5.110.0020.04917.27
5.5.100.0070.03917.15
5.5.90.0030.04817.19
5.5.80.0030.04317.20
5.5.70.0070.04217.18
5.5.60.0050.04117.13
5.5.50.0080.04317.13
5.5.40.0050.04016.88
5.5.30.0090.04217.22
5.5.20.0030.04917.01
5.5.10.0100.04317.22
5.5.00.0080.03517.16
5.4.450.0080.03815.26
5.4.440.0050.03915.30
5.4.430.0050.04015.26
5.4.420.0020.04515.15
5.4.410.0070.03915.23
5.4.400.0030.04114.97
5.4.390.0020.04714.97
5.4.380.0120.03715.11
5.4.370.0050.02515.03
5.4.360.0070.04215.06
5.4.350.0050.04215.04
5.4.340.0090.03314.98
5.4.330.0070.00011.17
5.4.320.0030.03415.09
5.4.310.0050.03814.96
5.4.300.0070.03815.12
5.4.290.0080.04015.15
5.4.280.0050.04314.94
5.4.270.0050.03515.05
5.4.260.0020.04715.02
5.4.250.0000.04515.15
5.4.240.0020.04015.05
5.4.230.0050.04114.91
5.4.220.0020.04615.03
5.4.210.0060.03814.94
5.4.200.0050.04115.05
5.4.190.0050.03514.98
5.4.180.0050.04115.07
5.4.170.0070.03714.92
5.4.160.0050.03915.02
5.4.150.0120.03714.76
5.4.140.0060.04013.59
5.4.130.0000.04213.60
5.4.120.0080.03613.61
5.4.110.0070.03413.77
5.4.100.0060.03013.46
5.4.90.0040.03313.78
5.4.80.0020.04113.81
5.4.70.0080.03413.74
5.4.60.0050.03013.75
5.4.50.0030.03813.66
5.4.40.0050.04213.60
5.4.30.0070.03513.62
5.4.20.0030.04013.80
5.4.10.0080.03513.67
5.4.00.0040.03913.45
5.3.290.0070.04112.57
5.3.280.0050.03612.40
5.3.270.0030.04412.53
5.3.260.0050.04212.56
5.3.250.0070.03712.62
5.3.240.0080.02012.52
5.3.230.0000.04212.39
5.3.220.0030.04512.35
5.3.210.0080.04112.40
5.3.200.0020.04412.35
5.3.190.0030.04112.30
5.3.180.0070.03812.47
5.3.170.0050.03512.53
5.3.160.0030.03812.40
5.3.150.0030.04212.50
5.3.140.0040.03812.45
5.3.130.0060.03812.46
5.3.120.0010.04212.52
5.3.110.0050.03712.52
5.3.100.0100.03312.25
5.3.90.0020.03512.17
5.3.80.0050.03512.11
5.3.70.0030.04112.06
5.3.60.0040.03712.04
5.3.50.0020.03012.20
5.3.40.0040.04211.96
5.3.30.0080.02512.08
5.3.20.0050.03211.99
5.3.10.0040.02411.74
5.3.00.0020.03811.84
5.2.170.0000.06311.39
5.2.160.0000.05311.39
5.2.150.0070.05711.39
5.2.140.0000.06311.39
5.2.130.0030.05311.39
5.2.120.0000.03711.39
5.2.110.0030.06311.39
5.2.100.0030.05711.39
5.2.90.0070.03311.39
5.2.80.0070.06011.39
5.2.70.0030.06311.39
5.2.60.0070.06011.39
5.2.50.0170.05311.39
5.2.40.0030.06011.39
5.2.30.0000.06011.39
5.2.20.0100.05311.39
5.2.10.0030.06011.39
5.2.00.0070.05711.39
5.1.60.0000.05311.39
5.1.50.0000.05311.39
5.1.40.0070.04711.39
5.1.30.0030.05711.39
5.1.20.0070.05011.39
5.1.10.0030.05311.39
5.1.00.0030.05711.39
5.0.50.0000.04011.39
5.0.40.0030.04311.39
5.0.30.0030.06011.39
5.0.20.0000.04711.39
5.0.10.0070.04011.39
5.0.00.0030.06311.39
4.4.90.0000.03311.39
4.4.80.0000.03311.39
4.4.70.0030.03311.39
4.4.60.0070.03011.39
4.4.50.0030.03011.39
4.4.40.0000.04711.39
4.4.30.0000.03711.39
4.4.20.0000.02011.39
4.4.10.0000.03711.39
4.4.00.0070.03711.39
4.3.110.0000.03311.39
4.3.100.0030.03311.39
4.3.90.0030.03311.39
4.3.80.0030.04011.39
4.3.70.0000.03311.39
4.3.60.0000.03011.39
4.3.50.0000.03711.39
4.3.40.0000.05011.39
4.3.30.0030.03011.39
4.3.20.0000.03711.39
4.3.10.0000.03711.39
4.3.00.0100.02711.39

preferences:
34.18 ms | 401 KiB | 5 Q