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.0100.01016.39
7.4.00.0040.01416.50
7.3.130.0100.01016.32
7.3.120.0100.01016.48
7.3.110.0040.01416.57
7.3.100.0060.00916.21
7.3.90.0100.00316.34
7.3.80.0100.00716.46
7.3.70.0000.01416.40
7.3.60.0030.00616.36
7.3.50.0100.00716.34
7.3.40.0090.00316.31
7.3.30.0060.00616.37
7.3.20.0060.00818.05
7.3.10.0110.00018.16
7.3.00.0160.00018.19
7.2.260.0030.01716.50
7.2.250.0070.01416.60
7.2.240.0130.00616.75
7.2.230.0030.01016.80
7.2.220.0080.00416.70
7.2.210.0060.00916.43
7.2.200.0060.00916.68
7.2.190.0030.00816.61
7.2.180.0030.01016.66
7.2.170.0070.00716.52
7.2.160.0030.01216.57
7.2.150.0090.00918.32
7.2.140.0060.00618.43
7.2.130.0040.01118.52
7.2.120.0090.00918.30
7.2.110.0060.01018.29
7.2.100.0070.01118.28
7.2.90.0000.01118.53
7.2.80.0070.01018.51
7.2.70.0100.00618.35
7.2.60.0040.01518.48
7.2.50.0100.01018.26
7.2.40.0120.00318.41
7.2.30.0130.00318.40
7.2.20.0070.00318.37
7.2.10.0040.01218.56
7.2.00.0050.01018.73
7.1.330.0030.01217.31
7.1.320.0070.00717.39
7.1.310.0030.01017.48
7.1.300.0140.00317.40
7.1.290.0000.01117.29
7.1.280.0030.01017.52
7.1.270.0060.01017.16
7.1.260.0040.01117.28
7.1.250.0070.00717.38
7.1.240.0030.01217.38
7.1.230.0070.00717.19
7.1.220.0030.01417.38
7.1.210.0000.01217.31
7.1.200.0060.00917.38
7.1.190.0070.00317.28
7.1.180.0040.00717.43
7.1.170.0090.00917.39
7.1.160.0100.00317.23
7.1.150.0090.00017.48
7.1.140.0030.01217.20
7.1.130.0070.00717.20
7.1.120.0070.00717.25
7.1.110.0030.01017.24
7.1.100.0060.01017.31
7.1.90.0100.01017.38
7.1.80.0080.01017.38
7.1.70.0090.00517.28
7.1.60.0020.01117.25
7.1.50.0090.00917.22
7.1.40.0040.01217.42
7.1.30.0070.00717.48
7.1.20.0100.00717.37
7.1.10.0070.00717.44
7.1.00.0020.02519.77
7.0.330.0060.00316.98
7.0.320.0000.01017.15
7.0.310.0090.00617.03
7.0.300.0070.01017.05
7.0.290.0040.00817.01
7.0.280.0100.01016.95
7.0.270.0040.01117.10
7.0.260.0060.00916.96
7.0.250.0090.00617.02
7.0.240.0090.00617.08
7.0.230.0090.00317.10
7.0.220.0080.00817.02
7.0.210.0100.00316.97
7.0.200.0040.01216.81
7.0.190.0030.01417.08
7.0.180.0130.00616.97
7.0.170.0100.01017.05
7.0.160.0060.00917.04
7.0.150.0040.00817.16
7.0.140.0080.03819.60
7.0.130.0040.01017.03
7.0.120.0060.01217.00
7.0.110.0030.04318.47
7.0.100.0100.04318.54
7.0.90.0100.04018.54
7.0.80.0100.03718.59
7.0.70.0060.02918.56
7.0.60.0030.04418.53
7.0.50.0130.02818.61
7.0.40.0080.04617.51
7.0.30.0070.04517.56
7.0.20.0080.04017.46
7.0.10.0100.04117.65
7.0.00.0030.03817.58
5.6.400.0060.00915.84
5.6.390.0030.01016.00
5.6.380.0060.00616.09
5.6.370.0030.01116.17
5.6.360.0100.00715.98
5.6.350.0070.00715.82
5.6.340.0040.00715.71
5.6.330.0040.01115.85
5.6.320.0070.00715.66
5.6.310.0000.01516.03
5.6.300.0030.01415.99
5.6.290.0120.00315.75
5.6.280.0070.04018.52
5.6.270.0100.00715.73
5.6.260.0070.00415.88
5.6.250.0050.05018.35
5.6.240.0070.04018.37
5.6.230.0060.05018.34
5.6.220.0050.03718.21
5.6.210.0070.04018.27
5.6.200.0030.03318.55
5.6.190.0130.03018.49
5.6.180.0100.02718.36
5.6.170.0100.03718.55
5.6.160.0000.03918.46
5.6.150.0130.03618.42
5.6.140.0060.03818.44
5.6.130.0030.03518.41
5.6.120.0070.03818.64
5.6.110.0040.02918.58
5.6.100.0090.02218.70
5.6.90.0030.02818.52
5.6.80.0070.03518.18
5.6.70.0070.03018.02
5.6.60.0070.04618.09
5.6.50.0100.02118.08
5.6.40.0050.03418.04
5.6.30.0090.02018.05
5.6.20.0050.02418.14
5.6.10.0050.02118.10
5.6.00.0070.02218.06
5.5.380.0030.04318.25
5.5.370.0130.04018.33
5.5.360.0100.03518.23
5.5.350.0070.02318.12
5.5.340.0050.04118.57
5.5.330.0080.02518.26
5.5.320.0030.04018.38
5.5.310.0050.04518.26
5.5.300.0050.04618.41
5.5.290.0030.02618.45
5.5.280.0000.03118.35
5.5.270.0030.03018.31
5.5.260.0020.03118.28
5.5.250.0050.03318.16
5.5.240.0080.02817.99
5.5.230.0070.02218.11
5.5.220.0060.03018.07
5.5.210.0080.02017.90
5.5.200.0100.02018.01
5.5.190.0030.02617.99
5.5.180.0080.02018.07
5.5.170.0070.00715.90
5.5.160.0060.02217.97
5.5.150.0030.02517.97
5.5.140.0000.03517.99
5.5.130.0040.02617.88
5.5.120.0050.02218.00
5.5.110.0080.02017.93
5.5.100.0050.02018.01
5.5.90.0050.02718.04
5.5.80.0020.02517.86
5.5.70.0050.04217.91
5.5.60.0140.03517.94
5.5.50.0090.03717.97
5.5.40.0100.04017.87
5.5.30.0070.04217.84
5.5.20.0080.04417.87
5.5.10.0050.03517.97
5.5.00.0090.04117.96
5.4.450.0010.02916.62
5.4.440.0030.02316.65
5.4.430.0070.02316.66
5.4.420.0050.02016.78
5.4.410.0080.02016.61
5.4.400.0020.02516.47
5.4.390.0030.02316.55
5.4.380.0080.02516.49
5.4.370.0050.02116.51
5.4.360.0020.02316.46
5.4.350.0030.02116.63
5.4.340.0030.02316.58
5.4.330.0000.00813.98
5.4.320.0080.02016.55
5.4.310.0040.02916.53
5.4.300.0030.02316.56
5.4.290.0020.02116.53
5.4.280.0020.02416.53
5.4.270.0040.02216.49
5.4.260.0040.02516.57
5.4.250.0020.03116.46
5.4.240.0040.02516.50
5.4.230.0040.02916.50
5.4.220.0020.03516.53
5.4.210.0130.03016.57
5.4.200.0030.03216.57
5.4.190.0020.04516.62
5.4.180.0000.04116.46
5.4.170.0070.03716.50
5.4.160.0030.04216.49
5.4.150.0060.03716.45
5.4.140.0020.04515.23
5.4.130.0080.03815.07
5.4.120.0060.02815.21
5.4.110.0070.03815.19
5.4.100.0020.04215.13
5.4.90.0090.02115.11
5.4.80.0030.04015.25
5.4.70.0020.04415.25
5.4.60.0070.04015.07
5.4.50.0070.04115.24
5.4.40.0070.04215.10
5.4.30.0030.04015.14
5.4.20.0030.03715.22
5.4.10.0100.03515.23
5.4.00.0050.03514.88
5.3.290.0050.03914.33
5.3.280.0100.03714.27
5.3.270.0100.03814.24
5.3.260.0110.03714.29
5.3.250.0050.03714.25
5.3.240.0070.03814.21
5.3.230.0070.03114.19
5.3.220.0030.04014.19
5.3.210.0050.04014.31
5.3.200.0100.03814.25
5.3.190.0060.04114.27
5.3.180.0050.03714.28
5.3.170.0030.04314.31
5.3.160.0030.03914.28
5.3.150.0000.03514.28
5.3.140.0050.04214.27
5.3.130.0080.04114.31
5.3.120.0080.04114.16
5.3.110.0080.03714.30
5.3.100.0030.04413.96
5.3.90.0030.04214.04
5.3.80.0120.03314.04
5.3.70.0050.04013.92
5.3.60.0060.02814.00
5.3.50.0050.03013.91
5.3.40.0080.03213.93
5.3.30.0100.03513.90
5.3.20.0090.03713.79
5.3.10.0030.04113.77
5.3.00.0060.04013.75
5.2.170.0000.06710.93
5.2.160.0030.06011.20
5.2.150.0030.05311.05
5.2.140.0070.06711.15
5.2.130.0030.06010.89
5.2.120.0030.06311.02
5.2.110.0070.05311.16
5.2.100.0070.05711.14
5.2.90.0000.04710.98
5.2.80.0030.04011.09
5.2.70.0000.06711.00
5.2.60.0000.06311.00
5.2.50.0070.03311.09
5.2.40.0070.06311.00
5.2.30.0100.06010.97
5.2.20.0000.06310.98
5.2.10.0000.06710.83
5.2.00.0030.05310.69
5.1.60.0070.05310.23
5.1.50.0070.0579.83
5.1.40.0030.0479.94
5.1.30.0070.04310.30
5.1.20.0000.05710.37
5.1.10.0030.05310.14
5.1.00.0030.05010.05
5.0.50.0070.0238.54
5.0.40.0030.0478.38
5.0.30.0030.0678.30
5.0.20.0030.0408.30
5.0.10.0000.0478.34
5.0.00.0030.0478.30
4.4.90.0030.0378.30
4.4.80.0070.0308.30
4.4.70.0000.0338.30
4.4.60.0030.0378.30
4.4.50.0070.0308.30
4.4.40.0170.0378.30
4.4.30.0100.0278.30
4.4.20.0030.0338.30
4.4.10.0030.0278.30
4.4.00.0000.0308.30
4.3.110.0030.0308.30
4.3.100.0000.0378.30
4.3.90.0030.0308.30
4.3.80.0070.0508.30
4.3.70.0000.0338.30
4.3.60.0000.0338.30
4.3.50.0000.0378.30
4.3.40.0000.0538.30
4.3.30.0030.0378.30
4.3.20.0030.0338.30
4.3.10.0000.0408.30
4.3.00.0070.0308.30

preferences:
64.37 ms | 400 KiB | 5 Q