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 = 3; 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.01015.06
7.4.00.0080.00814.92
7.3.130.0030.01414.56
7.3.120.0100.00814.86
7.3.110.0080.01014.90
7.3.100.0080.00714.88
7.3.90.0110.00415.04
7.3.80.0050.00614.89
7.3.70.0060.00614.78
7.3.60.0070.00814.82
7.3.50.0020.01314.71
7.3.40.0070.00714.73
7.3.30.0070.00514.77
7.3.20.0060.00816.42
7.3.10.0070.00616.70
7.3.00.0030.01016.66
7.2.260.0100.00715.16
7.2.250.0060.00915.13
7.2.240.0110.00615.04
7.2.230.0050.01214.92
7.2.220.0040.01114.84
7.2.210.0040.01314.79
7.2.200.0070.00714.89
7.2.190.0050.00814.84
7.2.180.0050.00614.92
7.2.170.0050.00914.95
7.2.160.0030.00714.98
7.2.150.0030.00916.75
7.2.140.0100.00316.83
7.2.130.0070.00316.72
7.2.120.0110.00416.61
7.2.110.0000.01416.77
7.2.100.0090.00916.72
7.2.90.0060.00716.59
7.2.80.0040.01516.76
7.2.70.0090.00616.82
7.2.60.0030.01316.86
7.2.50.0060.00916.77
7.2.40.0060.00616.84
7.2.30.0060.00616.97
7.2.20.0070.00716.91
7.2.10.0090.00017.03
7.2.00.0030.01017.91
7.1.330.0070.00815.61
7.1.320.0050.00915.68
7.1.310.0060.00815.84
7.1.300.0090.00315.51
7.1.290.0010.01115.72
7.1.280.0040.01115.81
7.1.270.0050.00815.70
7.1.260.0080.00215.67
7.1.250.0000.01315.83
7.1.240.0100.00315.71
7.1.230.0000.01815.70
7.1.220.0040.00415.73
7.1.210.0030.00915.64
7.1.200.0060.00915.89
7.1.190.0000.01115.71
7.1.180.0030.00915.95
7.1.170.0000.01215.63
7.1.160.0030.00615.78
7.1.150.0040.00715.77
7.1.140.0040.01115.95
7.1.130.0120.00015.88
7.1.120.0080.00415.73
7.1.110.0040.00415.90
7.1.100.0060.00615.93
7.1.90.0030.01115.60
7.1.80.0040.00815.74
7.1.70.0020.00816.31
7.1.60.0070.00316.31
7.1.50.0060.00816.45
7.1.40.0000.01515.80
7.1.30.0100.00315.87
7.1.20.0060.00615.86
7.1.10.0030.01015.93
7.1.00.0030.04019.15
7.0.330.0070.00715.26
7.0.320.0030.00615.09
7.0.310.0030.01415.43
7.0.300.0030.01015.39
7.0.290.0030.00715.38
7.0.280.0040.00815.54
7.0.270.0030.00615.55
7.0.260.0030.00515.26
7.0.250.0060.00915.24
7.0.240.0030.01015.39
7.0.230.0040.01115.53
7.0.220.0000.00815.47
7.0.210.0000.01115.16
7.0.200.0050.00915.95
7.0.190.0040.01115.45
7.0.180.0070.01115.43
7.0.170.0070.01115.51
7.0.160.0060.00615.24
7.0.150.0100.00615.15
7.0.140.0050.03818.55
7.0.130.0000.01115.51
7.0.120.0080.00015.25
7.0.110.0060.00615.43
7.0.100.0050.02317.58
7.0.90.0070.01817.62
7.0.80.0030.02517.55
7.0.70.0020.02317.76
7.0.60.0080.02617.51
7.0.50.0050.02717.83
7.0.40.0030.02416.81
7.0.30.0050.02316.80
7.0.20.0030.02516.73
7.0.10.0030.02616.64
7.0.00.0070.02516.72
5.6.400.0040.00714.16
5.6.390.0070.00714.33
5.6.380.0100.00314.55
5.6.370.0030.00914.21
5.6.360.0070.00714.57
5.6.350.0080.00414.23
5.6.340.0110.00014.40
5.6.330.0030.00713.96
5.6.320.0060.00613.90
5.6.310.0080.00414.77
5.6.300.0030.01314.29
5.6.290.0000.01214.51
5.6.280.0060.03617.57
5.6.270.0000.01114.37
5.6.260.0060.00614.31
5.6.250.0040.02217.44
5.6.240.0020.02617.32
5.6.230.0070.02217.47
5.6.220.0050.02317.29
5.6.210.0020.02817.60
5.6.200.0050.02217.61
5.6.190.0070.02917.56
5.6.180.0120.01817.77
5.6.170.0050.02317.77
5.6.160.0040.02417.57
5.6.150.0060.02217.81
5.6.140.0050.02517.84
5.6.130.0080.02117.68
5.6.120.0050.02317.68
5.6.110.0070.02617.63
5.6.100.0030.03317.68
5.6.90.0040.02917.71
5.6.80.0050.04417.36
5.6.70.0030.04917.21
5.6.60.0110.03617.31
5.6.50.0070.04017.31
5.6.40.0050.04217.25
5.6.30.0090.04417.38
5.6.20.0070.03817.25
5.6.10.0030.04217.38
5.6.00.0070.03717.30
5.5.380.0000.02717.34
5.5.370.0090.01917.29
5.5.360.0090.02917.37
5.5.350.0050.02317.38
5.5.340.0030.02717.59
5.5.330.0060.02317.41
5.5.320.0050.02217.51
5.5.310.0060.02517.67
5.5.300.0030.02917.56
5.5.290.0060.02417.60
5.5.280.0070.01817.43
5.5.270.0030.03717.45
5.5.260.0040.02017.63
5.5.250.0040.04717.34
5.5.240.0050.03717.15
5.5.230.0060.04517.30
5.5.220.0100.03817.30
5.5.210.0100.04317.15
5.5.200.0070.04217.31
5.5.190.0080.03517.27
5.5.180.0120.04017.14
5.5.170.0040.01114.17
5.5.160.0110.03517.12
5.5.150.0020.04117.27
5.5.140.0080.03517.37
5.5.130.0020.05017.13
5.5.120.0080.03317.18
5.5.110.0050.03417.22
5.5.100.0030.03117.11
5.5.90.0040.02717.23
5.5.80.0080.04317.07
5.5.70.0070.04517.16
5.5.60.0110.02117.27
5.5.50.0070.03517.24
5.5.40.0020.04717.02
5.5.30.0030.02517.09
5.5.20.0070.03417.27
5.5.10.0080.04117.03
5.5.00.0050.03317.15
5.4.450.0080.01715.20
5.4.440.0070.02015.18
5.4.430.0020.03315.21
5.4.420.0030.03115.14
5.4.410.0030.02815.34
5.4.400.0050.03115.22
5.4.390.0050.02815.02
5.4.380.0070.03715.08
5.4.370.0080.04015.13
5.4.360.0070.04115.03
5.4.350.0110.03614.85
5.4.340.0110.03215.05
5.4.330.0070.00010.82
5.4.320.0120.03315.03
5.4.310.0050.02514.95
5.4.300.0030.03315.13
5.4.290.0040.02515.03
5.4.280.0060.04214.90
5.4.270.0090.03615.04
5.4.260.0080.04014.94
5.4.250.0060.02914.92
5.4.240.0020.04115.08
5.4.230.0050.02815.01
5.4.220.0070.01814.78
5.4.210.0080.03315.03
5.4.200.0070.04015.15
5.4.190.0050.03815.04
5.4.180.0050.04215.06
5.4.170.0070.02214.93
5.4.160.0030.02614.91
5.4.150.0080.03315.00
5.4.140.0080.04013.63
5.4.130.0030.04113.71
5.4.120.0070.02013.78
5.4.110.0070.03713.70
5.4.100.0070.02113.77
5.4.90.0050.03813.75
5.4.80.0060.03113.81
5.4.70.0060.03313.74
5.4.60.0030.04413.80
5.4.50.0100.03013.73
5.4.40.0120.01813.64
5.4.30.0050.04113.80
5.4.20.0050.03813.45
5.4.10.0020.03713.75
5.4.00.0020.03113.42
5.3.290.0060.02312.63
5.3.280.0060.04112.56
5.3.270.0030.04412.54
5.3.260.0060.04012.49
5.3.250.0070.02912.61
5.3.240.0040.04112.57
5.3.230.0050.02512.53
5.3.220.0020.03512.51
5.3.210.0120.03012.47
5.3.200.0040.04212.52
5.3.190.0030.02712.45
5.3.180.0050.02412.62
5.3.170.0070.04212.57
5.3.160.0050.03712.43
5.3.150.0070.03112.59
5.3.140.0010.04112.56
5.3.130.0040.03212.43
5.3.120.0040.03612.60
5.3.110.0050.03612.50
5.3.100.0080.03312.12
5.3.90.0020.03312.24
5.3.80.0070.04012.15
5.3.70.0030.04112.15
5.3.60.0020.02712.21
5.3.50.0080.03112.08
5.3.40.0100.03512.19
5.3.30.0060.03812.11
5.3.20.0030.02812.10
5.3.10.0040.02811.91
5.3.00.0070.03811.94
5.2.170.0100.03713.17
5.2.160.0100.05313.17
5.2.150.0030.06013.17
5.2.140.0070.06013.17
5.2.130.0070.06013.17
5.2.120.0070.06013.17
5.2.110.0000.05713.17
5.2.100.0100.04013.17
5.2.90.0070.06013.17
5.2.80.0030.06313.17
5.2.70.0000.06713.17
5.2.60.0070.05713.17
5.2.50.0030.06013.17
5.2.40.0070.05013.17
5.2.30.0070.04713.17
5.2.20.0100.05013.17
5.2.10.0130.03713.17
5.2.00.0100.06013.17
5.1.60.0070.03013.17
5.1.50.0070.05313.17
5.1.40.0030.03713.17
5.1.30.0000.04313.17
5.1.20.0000.06013.17
5.1.10.0030.05313.17
5.1.00.0070.02713.17
5.0.50.0070.04013.17
5.0.40.0070.02013.17
5.0.30.0000.06713.17
5.0.20.0000.04013.17
5.0.10.0070.04713.17
5.0.00.0000.03713.17
4.4.90.0030.01713.17
4.4.80.0000.01713.17
4.4.70.0070.02713.17
4.4.60.0030.03313.17
4.4.50.0030.03313.17
4.4.40.0000.04713.17
4.4.30.0000.03713.17
4.4.20.0100.03013.17
4.4.10.0000.02313.17
4.4.00.0000.05713.17
4.3.110.0030.02713.17
4.3.100.0030.02313.17
4.3.90.0030.03713.17
4.3.80.0030.03313.17
4.3.70.0000.01713.17
4.3.60.0030.01313.17
4.3.50.0030.01713.17
4.3.40.0030.04013.17
4.3.30.0000.02713.17
4.3.20.0030.03713.17
4.3.10.0070.02313.17
4.3.00.0070.03013.17

preferences:
36.46 ms | 401 KiB | 5 Q