3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://whatever.com/api/campaigns/%s/success'; $query = http_build_query(array( 'campaignId' => 2, 'dateFrom' => date('Y-m-d\TH:i:s', time()), 'dateTo' => date('Y-m-d\TH:i:s', time()), )); echo sprintf($url, 2) . '?' . $query;

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.00.0030.01415.15
7.3.120.0100.00714.99
7.3.110.0120.00614.42
7.3.100.0030.01614.97
7.3.90.0080.00414.98
7.3.80.0140.00315.00
7.3.70.0030.00914.85
7.3.60.0000.01414.73
7.3.50.0040.00414.86
7.3.40.0060.00314.89
7.3.30.0060.00914.71
7.3.20.0060.00616.73
7.3.10.0100.00316.84
7.3.00.0000.01016.91
7.2.250.0040.01515.08
7.2.240.0090.00914.98
7.2.230.0080.00715.48
7.2.220.0120.00315.11
7.2.210.0060.00315.36
7.2.200.0000.01515.00
7.2.190.0100.00714.96
7.2.180.0030.00714.85
7.2.170.0060.00915.24
7.2.160.0030.01015.16
7.2.150.0040.00716.77
7.2.140.0090.00317.11
7.2.130.0080.00416.81
7.2.120.0040.00816.99
7.2.110.0030.00917.20
7.2.100.0040.00816.99
7.2.90.0070.01017.00
7.2.80.0060.00617.02
7.2.70.0040.00416.98
7.2.60.0070.00717.04
7.2.50.0040.01116.98
7.2.40.0060.00917.02
7.2.30.0000.01516.77
7.2.20.0040.01116.98
7.2.10.0040.01117.09
7.2.00.0070.00818.32
7.1.330.0030.01415.66
7.1.320.0070.00715.83
7.1.310.0080.00015.89
7.1.300.0000.01715.68
7.1.290.0000.01015.55
7.1.280.0060.00615.80
7.1.270.0070.00715.82
7.1.260.0110.00315.79
7.1.250.0060.00915.78
7.1.240.0040.01115.93
7.1.230.0030.01015.98
7.1.220.0070.00715.77
7.1.210.0030.00715.83
7.1.200.0110.00415.72
7.1.190.0000.01015.70
7.1.180.0000.00915.76
7.1.170.0030.00915.95
7.1.160.0030.01015.75
7.1.150.0070.00715.86
7.1.140.0000.00915.77
7.1.130.0000.01415.82
7.1.120.0030.01015.90
7.1.110.0030.01015.60
7.1.100.0080.00516.97
7.1.90.0090.00615.87
7.1.80.0100.00315.78
7.1.70.0020.00816.47
7.1.60.0070.01217.54
7.1.50.0100.00616.53
7.1.40.0090.00615.96
7.1.30.0030.00915.64
7.1.20.0080.00415.82
7.1.10.0030.00915.80
7.1.00.0020.04719.15
7.0.330.0100.00315.38
7.0.320.0090.00315.69
7.0.310.0030.01015.48
7.0.300.0060.00615.21
7.0.290.0100.00015.38
7.0.280.0060.00915.42
7.0.270.0080.00515.21
7.0.260.0070.00715.42
7.0.250.0030.00715.27
7.0.240.0040.01115.39
7.0.230.0060.00615.59
7.0.220.0080.00415.68
7.0.210.0090.00015.46
7.0.200.0040.00516.16
7.0.190.0130.00315.29
7.0.180.0070.00715.61
7.0.170.0100.00315.63
7.0.160.0040.00715.50
7.0.150.0030.01015.54
7.0.140.0080.02718.75
7.0.130.0110.00315.41
7.0.120.0040.01215.38
7.0.110.0120.00015.54
7.0.100.0220.04317.79
7.0.90.0060.04417.71
7.0.80.0050.03217.73
7.0.70.0020.03117.77
7.0.60.0070.03017.68
7.0.50.0050.02417.91
7.0.40.0060.02316.89
7.0.30.0080.02716.83
7.0.20.0070.04616.86
7.0.10.0100.04216.82
7.0.00.0120.03116.87
5.6.400.0000.00914.72
5.6.390.0030.01214.03
5.6.380.0040.00814.68
5.6.370.0000.00814.44
5.6.360.0070.00714.08
5.6.350.0060.00914.72
5.6.340.0140.00014.30
5.6.330.0040.00714.59
5.6.320.0060.00614.27
5.6.310.0100.00614.36
5.6.300.0000.01314.29
5.6.290.0030.01414.34
5.6.280.0070.04017.69
5.6.270.0060.00614.46
5.6.260.0060.00614.17
5.6.250.0030.04517.68
5.6.240.0000.05217.55
5.6.230.0080.03717.45
5.6.220.0070.04217.53
5.6.210.0080.04417.54
5.6.200.0000.03017.76
5.6.190.0020.02917.68
5.6.180.0120.03717.93
5.6.170.0050.04717.60
5.6.160.0080.03517.66
5.6.150.0030.04417.63
5.6.140.0070.03717.70
5.6.130.0100.03517.83
5.6.120.0050.04717.72
5.6.110.0090.04017.93
5.6.100.0050.04517.70
5.6.90.0020.03417.64
5.6.80.0070.03517.36
5.6.70.0030.03217.24
5.6.60.0100.03117.40
5.6.50.0020.03517.29
5.6.40.0070.04717.42
5.6.30.0120.03817.35
5.6.20.0040.02217.43
5.6.10.0070.03817.30
5.6.00.0050.04317.35
5.5.380.0110.04117.51
5.5.370.0070.03317.30
5.5.360.0060.02817.20
5.5.350.0030.03217.28
5.5.340.0130.03717.53
5.5.330.0060.02417.47
5.5.320.0070.04217.47
5.5.310.0080.04217.49
5.5.300.0040.04717.61
5.5.290.0110.03817.71
5.5.280.0050.04317.46
5.5.270.0190.02717.62
5.5.260.0070.04617.52
5.5.250.0060.04017.44
5.5.240.0060.04117.37
5.5.230.0030.03217.38
5.5.220.0020.04017.09
5.5.210.0050.02917.19
5.5.200.0020.04417.23
5.5.190.0100.04017.19
5.5.180.0060.03617.15
5.5.170.0040.01214.31
5.5.160.0070.04517.19
5.5.150.0100.04017.27
5.5.140.0060.02817.29
5.5.130.0080.02517.21
5.5.120.0050.04017.21
5.5.110.0050.02717.20
5.5.100.0050.02917.07
5.5.90.0080.03717.26
5.5.80.0100.02517.27
5.5.70.0040.04417.22
5.5.60.0140.03517.24
5.5.50.0050.02717.18
5.5.40.0050.03317.24
5.5.30.0110.02317.15
5.5.20.0070.04317.21
5.5.10.0050.04117.30
5.5.00.0050.04617.01
5.4.450.0070.04015.96
5.4.440.0080.03015.91
5.4.430.0030.02815.90
5.4.420.0070.04315.89
5.4.410.0060.03815.90
5.4.400.0070.03915.67
5.4.390.0050.04015.75
5.4.380.0000.02615.78
5.4.370.0020.04215.58
5.4.360.0080.03815.70
5.4.350.0040.02615.70
5.4.340.0070.02315.62
5.4.330.0000.00612.36
5.4.320.0070.04015.66
5.4.310.0030.02815.74
5.4.300.0080.03915.69
5.4.290.0070.03215.80
5.4.280.0030.03015.65
5.4.270.0050.02315.69
5.4.260.0050.02915.68
5.4.250.0050.03515.63
5.4.240.0050.03715.60
5.4.230.0020.04115.70
5.4.220.0000.04915.72
5.4.210.0050.04115.71
5.4.200.0040.02615.65
5.4.190.0000.02515.71
5.4.180.0050.04415.75
5.4.170.0030.03715.71
5.4.160.0030.04315.74
5.4.150.0070.04315.73
5.4.140.0020.02914.35
5.4.130.0050.04114.39
5.4.120.0110.03314.29
5.4.110.0050.03714.34
5.4.100.0070.02214.32
5.4.90.0090.03814.41
5.4.80.0050.04314.32
5.4.70.0070.03614.33
5.4.60.0080.02314.32
5.4.50.0070.03514.28
5.4.40.0030.03814.30
5.4.30.0020.04514.30
5.4.20.0070.02114.32
5.4.10.0060.03514.38
5.4.00.0030.03214.04
5.3.290.0030.05014.67
5.3.280.0170.07014.54
5.3.270.0070.08014.59
5.3.260.0070.04714.46
5.3.250.0070.04314.44
5.3.240.0200.03314.55
5.3.230.0100.04314.55
5.3.220.0030.07714.39
5.3.210.0070.04314.52
5.3.200.0100.07314.53
5.3.190.0130.03714.52
5.3.180.0030.07714.50
5.3.170.0070.06314.51
5.3.160.0100.06314.52
5.3.150.0070.08014.51
5.3.140.0070.04714.55
5.3.130.0100.04714.54
5.3.120.0070.07314.51
5.3.110.0030.07714.51
5.3.100.0100.07013.99
5.3.90.0000.06013.88
5.3.80.0070.07713.99
5.3.70.0100.03713.87
5.3.60.0070.03314.00
5.3.50.0230.05713.95
5.3.40.0030.04013.85
5.3.30.0070.06713.66
5.3.20.0030.07313.46
5.3.10.0070.05313.42
5.3.00.0100.07013.63
5.2.170.0100.05710.98
5.2.160.0130.05711.17
5.2.150.0100.04011.06
5.2.140.0130.05711.18
5.2.130.0030.04711.12
5.2.120.0030.04310.96
5.2.110.0030.05310.94
5.2.100.0030.04310.96
5.2.90.0030.04011.14
5.2.80.0030.03010.95
5.2.70.0070.04011.16
5.2.60.0030.06311.04
5.2.50.0030.05010.88
5.2.40.0100.05311.03
5.2.30.0070.05010.77
5.2.20.0070.06011.02
5.2.10.0030.05710.76
5.2.00.0030.05710.74
5.1.60.0130.0409.82
5.1.50.0030.0579.83
5.1.40.0030.0509.96
5.1.30.0030.03710.34
5.1.20.0030.03310.26
5.1.10.0030.04310.11
5.1.00.0000.05710.05
5.0.50.0030.0478.57
5.0.40.0030.0478.48
5.0.30.0000.0738.20
5.0.20.0130.0338.18
5.0.10.0000.0478.00
5.0.00.0000.0608.18
4.4.90.0070.0336.77
4.4.80.0030.0376.77
4.4.70.0070.0336.77
4.4.60.0070.0306.77
4.4.50.0000.0376.77
4.4.40.0030.0276.77
4.4.30.0000.0376.77
4.4.20.0030.0336.77
4.4.10.0000.0376.77
4.4.00.0000.0506.77
4.3.110.0000.0406.77
4.3.100.0000.0306.77
4.3.90.0030.0236.77
4.3.80.0030.0236.77
4.3.70.0030.0336.77
4.3.60.0070.0306.77
4.3.50.0000.0376.77
4.3.40.0070.0236.77
4.3.30.0070.0306.77
4.3.20.0000.0376.77
4.3.10.0000.0336.77
4.3.00.0030.0306.77

preferences:
42.61 ms | 400 KiB | 5 Q