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 = 41; $end = 50; 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.0030.01415.07
7.4.00.0100.01015.15
7.3.130.0130.00314.91
7.3.120.0100.01014.92
7.3.110.0040.01514.57
7.3.100.0040.01414.79
7.3.90.0130.00014.53
7.3.80.0130.00615.12
7.3.70.0110.00414.87
7.3.60.0090.00614.73
7.3.50.0050.00914.79
7.3.40.0080.00815.07
7.3.30.0070.00314.55
7.3.20.0080.00416.55
7.3.10.0090.00416.65
7.3.00.0070.00916.59
7.2.260.0040.01214.86
7.2.250.0100.01015.10
7.2.240.0030.01115.13
7.2.230.0090.00614.96
7.2.220.0040.00715.30
7.2.210.0100.00615.36
7.2.200.0110.00715.07
7.2.190.0030.01215.10
7.2.180.0120.00315.07
7.2.170.0000.01515.24
7.2.160.0000.01814.93
7.2.150.0090.00617.04
7.2.140.0000.01716.94
7.2.130.0070.01116.68
7.2.120.0120.00616.71
7.2.110.0110.00816.61
7.2.100.0110.00616.70
7.2.90.0110.00816.85
7.2.80.0110.00416.76
7.2.70.0100.00716.90
7.2.60.0130.00416.65
7.2.50.0110.01016.69
7.2.40.0090.00516.79
7.2.30.0100.00816.90
7.2.20.0060.01216.80
7.2.10.0060.00816.67
7.2.00.0060.00817.48
7.1.330.0000.01515.82
7.1.320.0100.00315.89
7.1.310.0060.00615.84
7.1.300.0110.00315.67
7.1.290.0040.00815.84
7.1.280.0080.00415.90
7.1.270.0030.00715.76
7.1.260.0080.00615.69
7.1.250.0080.00715.51
7.1.240.0060.00615.86
7.1.230.0030.01215.85
7.1.220.0070.00315.89
7.1.210.0070.00715.86
7.1.200.0070.00315.90
7.1.190.0060.00915.86
7.1.180.0000.01315.92
7.1.170.0070.00715.97
7.1.160.0000.01115.69
7.1.150.0080.00615.98
7.1.140.0100.00315.90
7.1.130.0040.01115.69
7.1.120.0000.01415.74
7.1.110.0000.01315.71
7.1.100.0000.01315.83
7.1.90.0040.01115.73
7.1.80.0040.00415.79
7.1.70.0030.00516.40
7.1.60.0050.00816.64
7.1.50.0050.01516.50
7.1.40.0040.00715.71
7.1.30.0000.01215.93
7.1.20.0090.00615.79
7.1.10.0000.01415.86
7.1.00.0030.02419.14
7.0.330.0000.01215.39
7.0.320.0040.01115.63
7.0.310.0090.00615.36
7.0.300.0000.01015.45
7.0.290.0080.00615.27
7.0.280.0040.00815.34
7.0.270.0040.00715.21
7.0.260.0030.01015.54
7.0.250.0030.00915.50
7.0.240.0090.00615.33
7.0.230.0030.00715.41
7.0.220.0060.00615.59
7.0.210.0030.01015.38
7.0.200.0080.00716.04
7.0.190.0100.00315.23
7.0.180.0000.01415.56
7.0.170.0000.01315.44
7.0.160.0080.00515.17
7.0.150.0000.01615.21
7.0.140.0120.03018.59
7.0.130.0070.00715.43
7.0.120.0110.00415.69
7.0.110.0060.00615.19
7.0.100.0080.04417.60
7.0.90.0100.03517.78
7.0.80.0030.04717.67
7.0.70.0030.02917.55
7.0.60.0050.04017.67
7.0.50.0130.04317.91
7.0.40.0100.04216.86
7.0.30.0030.04316.75
7.0.20.0070.04416.81
7.0.10.0090.04316.82
7.0.00.0030.04916.81
5.6.400.0070.00714.49
5.6.390.0090.00614.50
5.6.380.0070.00714.67
5.6.370.0090.00614.68
5.6.360.0030.01014.53
5.6.350.0100.00314.34
5.6.340.0040.01214.18
5.6.330.0100.00314.24
5.6.320.0000.01214.76
5.6.310.0080.00414.54
5.6.300.0090.00614.46
5.6.290.0120.00314.39
5.6.280.0050.04017.78
5.6.270.0060.00914.48
5.6.260.0040.00414.50
5.6.250.0050.04217.53
5.6.240.0090.03917.38
5.6.230.0070.04417.43
5.6.220.0080.04217.42
5.6.210.0080.04517.52
5.6.200.0050.04717.88
5.6.190.0050.04617.73
5.6.180.0090.02817.70
5.6.170.0070.04517.67
5.6.160.0130.02717.73
5.6.150.0070.04217.62
5.6.140.0050.04517.70
5.6.130.0080.04317.87
5.6.120.0070.04417.63
5.6.110.0030.04817.74
5.6.100.0090.04117.71
5.6.90.0050.04917.68
5.6.80.0100.04217.32
5.6.70.0060.02517.27
5.6.60.0110.03817.25
5.6.50.0050.02517.41
5.6.40.0110.03817.21
5.6.30.0080.04017.28
5.6.20.0080.04317.47
5.6.10.0060.04317.47
5.6.00.0070.04317.31
5.5.380.0050.04517.37
5.5.370.0160.03717.33
5.5.360.0100.03817.23
5.5.350.0050.04417.24
5.5.340.0090.02517.46
5.5.330.0050.04517.65
5.5.320.0070.04417.49
5.5.310.0140.03717.69
5.5.300.0100.04117.64
5.5.290.0080.03017.52
5.5.280.0080.04217.66
5.5.270.0070.04717.67
5.5.260.0070.04517.53
5.5.250.0070.02817.43
5.5.240.0080.04317.15
5.5.230.0090.04117.23
5.5.220.0100.03517.20
5.5.210.0100.03917.16
5.5.200.0070.04117.44
5.5.190.0070.04317.24
5.5.180.0030.04617.16
5.5.170.0080.00414.17
5.5.160.0100.02517.15
5.5.150.0130.03917.34
5.5.140.0080.04117.16
5.5.130.0110.04117.13
5.5.120.0080.03517.36
5.5.110.0100.04317.20
5.5.100.0070.04217.30
5.5.90.0080.04017.02
5.5.80.0070.04017.11
5.5.70.0050.03017.11
5.5.60.0110.03917.04
5.5.50.0130.03917.10
5.5.40.0090.03717.18
5.5.30.0080.03017.10
5.5.20.0150.03717.19
5.5.10.0060.02517.21
5.5.00.0100.02317.19
5.4.450.0080.04215.29
5.4.440.0040.04315.11
5.4.430.0020.04015.19
5.4.420.0090.03015.40
5.4.410.0120.03615.15
5.4.400.0070.02815.01
5.4.390.0070.03714.94
5.4.380.0050.03914.82
5.4.370.0050.02815.10
5.4.360.0030.04315.10
5.4.350.0050.04014.87
5.4.340.0080.03114.83
5.4.330.0110.00010.93
5.4.320.0070.04115.21
5.4.310.0050.04614.99
5.4.300.0110.03415.13
5.4.290.0030.04415.02
5.4.280.0040.04414.91
5.4.270.0080.03815.13
5.4.260.0120.03314.92
5.4.250.0050.02714.99
5.4.240.0060.04315.03
5.4.230.0050.03714.75
5.4.220.0080.03514.98
5.4.210.0090.03615.18
5.4.200.0080.03215.12
5.4.190.0030.02915.11
5.4.180.0080.03115.02
5.4.170.0080.03015.00
5.4.160.0080.03714.87
5.4.150.0050.03314.91
5.4.140.0150.03013.61
5.4.130.0080.03113.65
5.4.120.0020.04413.76
5.4.110.0070.03513.60
5.4.100.0070.02913.51
5.4.90.0030.03813.78
5.4.80.0020.02713.52
5.4.70.0070.04013.52
5.4.60.0080.03013.82
5.4.50.0030.03413.62
5.4.40.0100.03513.64
5.4.30.0090.03713.61
5.4.20.0030.03813.71
5.4.10.0090.03013.63
5.4.00.0000.04713.37
5.3.290.0080.03312.61
5.3.280.0020.04112.51
5.3.270.0050.02212.58
5.3.260.0060.03012.56
5.3.250.0050.02312.57
5.3.240.0100.03012.58
5.3.230.0040.04412.51
5.3.220.0070.03812.49
5.3.210.0100.03212.49
5.3.200.0050.03112.49
5.3.190.0060.03912.56
5.3.180.0080.03812.54
5.3.170.0050.03712.56
5.3.160.0070.02012.54
5.3.150.0070.03712.51
5.3.140.0030.02712.56
5.3.130.0020.04412.55
5.3.120.0020.03412.55
5.3.110.0120.02512.48
5.3.100.0050.03012.29
5.3.90.0010.02312.24
5.3.80.0020.04312.28
5.3.70.0070.04012.27
5.3.60.0110.02112.28
5.3.50.0070.03812.25
5.3.40.0000.04412.19
5.3.30.0050.03812.21
5.3.20.0060.03912.05
5.3.10.0050.03512.11
5.3.00.0020.03812.03
5.2.170.0000.06712.17
5.2.160.0070.02712.17
5.2.150.0070.03312.17
5.2.140.0100.05712.17
5.2.130.0000.06712.17
5.2.120.0030.05312.17
5.2.110.0070.05712.17
5.2.100.0100.04312.17
5.2.90.0000.06012.17
5.2.80.0100.05712.17
5.2.70.0030.05712.17
5.2.60.0000.06312.17
5.2.50.0070.04712.17
5.2.40.0100.05712.17
5.2.30.0070.03012.17
5.2.20.0130.06012.17
5.2.10.0130.05012.17
5.2.00.0030.05712.17
5.1.60.0030.04012.17
5.1.50.0070.05012.17
5.1.40.0000.03712.17
5.1.30.0030.06012.17
5.1.20.0100.05012.17
5.1.10.0030.05012.17
5.1.00.0030.04012.17
5.0.50.0000.03712.17
5.0.40.0030.04012.17
5.0.30.0030.06012.17
5.0.20.0030.02012.17
5.0.10.0000.04712.17
5.0.00.0030.03312.17
4.4.90.0000.04012.17
4.4.80.0030.03012.17
4.4.70.0000.03712.17
4.4.60.0000.03012.17
4.4.50.0070.02712.17
4.4.40.0000.06012.17
4.4.30.0000.03712.17
4.4.20.0000.03712.17
4.4.10.0030.02312.17
4.4.00.0030.05312.17
4.3.110.0030.02312.17
4.3.100.0030.03312.17
4.3.90.0000.02012.17
4.3.80.0000.06012.17
4.3.70.0030.03312.17
4.3.60.0000.03712.17
4.3.50.0070.02712.17
4.3.40.0130.04012.17
4.3.30.0000.03312.17
4.3.20.0000.03712.17
4.3.10.0030.03312.17
4.3.00.0030.03012.17

preferences:
39.22 ms | 401 KiB | 5 Q