3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nid = 19977; $uid = 13; $purchaseParams = array( 'args'=>array( 'uid'=>$uid, 'payment_method'=>'free_order', 'products' => array( array( 'pid'=>$nid, 'data'=>array('attributes'=>new stdClass(), 'shippable'=>'0', 'module'=>'uc_product' ) ) ) )); print json_encode($purchaseParams);

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)
8.3.40.0090.00618.66
8.3.30.0120.00918.95
8.3.20.0040.00420.24
8.3.10.0050.00323.66
8.3.00.0060.00319.25
8.2.170.0110.01122.96
8.2.160.0140.00320.46
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00320.94
8.2.110.0000.00822.13
8.2.100.0110.00018.16
8.2.90.0050.00319.36
8.2.80.0090.00017.97
8.2.70.0000.01117.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0050.00320.07
8.2.30.0000.00818.13
8.2.20.0000.00817.62
8.2.10.0000.00818.10
8.2.00.0060.00317.87
8.1.270.0090.00023.80
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.88
8.1.230.0040.00718.84
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0030.00617.36
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0140.00018.35
8.1.160.0000.00821.94
8.1.150.0040.00418.87
8.1.140.0050.00317.48
8.1.130.0030.00317.77
8.1.120.0000.00717.36
8.1.110.0000.00917.36
8.1.100.0000.00717.47
8.1.90.0080.00017.43
8.1.80.0040.00417.51
8.1.70.0030.00317.39
8.1.60.0060.00317.56
8.1.50.0040.00417.57
8.1.40.0080.00017.35
8.1.30.0050.00317.67
8.1.20.0040.00417.54
8.1.10.0040.00417.57
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0030.00318.45
8.0.270.0000.00717.27
8.0.260.0000.00617.21
8.0.250.0050.00216.86
8.0.240.0040.00416.93
8.0.230.0030.00316.80
8.0.220.0030.00316.87
8.0.210.0070.00016.85
8.0.200.0000.00616.84
8.0.190.0000.00716.95
8.0.180.0030.00416.94
8.0.170.0050.00216.80
8.0.160.0070.00016.90
8.0.150.0040.00416.83
8.0.140.0000.00716.70
8.0.130.0030.00313.27
8.0.120.0000.00716.80
8.0.110.0000.00716.93
8.0.100.0000.00716.77
8.0.90.0000.00716.93
8.0.80.0110.00416.95
8.0.70.0050.00316.88
8.0.60.0070.00016.87
8.0.50.0000.00716.75
8.0.30.0090.01217.11
8.0.20.0100.00817.40
8.0.10.0040.00417.07
8.0.00.0080.01016.83
7.4.330.0020.00215.09
7.4.320.0030.00316.58
7.4.300.0060.00016.51
7.4.290.0030.00316.53
7.4.280.0070.00016.59
7.4.270.0030.00316.61
7.4.260.0000.00716.47
7.4.250.0030.00516.59
7.4.240.0020.00516.62
7.4.230.0050.00216.42
7.4.220.0000.01716.54
7.4.210.0110.00316.63
7.4.200.0030.00316.41
7.4.160.0100.00516.33
7.4.150.0100.00617.40
7.4.140.0120.00617.86
7.4.130.0090.01016.45
7.4.120.0130.00716.49
7.4.110.0170.00316.27
7.4.100.0060.01116.56
7.4.90.0050.01116.38
7.4.80.0140.01119.39
7.4.70.0080.00816.42
7.4.60.0100.00616.38
7.4.50.0030.00516.63
7.4.40.0160.00816.36
7.4.30.0040.01316.57
7.4.00.0070.00814.88
7.3.330.0030.00313.18
7.3.320.0000.00513.10
7.3.310.0080.00016.31
7.3.300.0070.00016.17
7.3.290.0000.01416.25
7.3.280.0100.00616.26
7.3.270.0100.00717.40
7.3.260.0090.01216.23
7.3.250.0070.01016.37
7.3.240.0090.01016.30
7.3.230.0100.00716.55
7.3.210.0040.01316.38
7.3.200.0060.00919.39
7.3.190.0070.01016.55
7.3.180.0100.00516.27
7.3.170.0100.00616.27
7.3.160.0130.00416.30
7.3.120.0100.00714.81
7.3.110.0140.00314.82
7.3.100.0020.01714.76
7.3.90.0060.00614.83
7.3.80.0060.00814.80
7.3.70.0050.00514.69
7.3.60.0050.00614.48
7.3.50.0060.00614.79
7.3.40.0070.00714.89
7.3.30.0060.00814.54
7.3.20.0040.00716.62
7.3.10.0050.01016.75
7.3.00.0060.00616.42
7.2.330.0060.01216.43
7.2.320.0120.00416.61
7.2.310.0060.00916.70
7.2.300.0080.01316.60
7.2.290.0150.00316.75
7.2.250.0050.01215.05
7.2.240.0090.00815.07
7.2.230.0090.00514.99
7.2.220.0020.01414.88
7.2.210.0070.00514.80
7.2.200.0050.00814.95
7.2.190.0040.00915.05
7.2.180.0110.00314.74
7.2.170.0060.00514.87
7.2.160.0070.00714.88
7.2.150.0100.00316.72
7.2.140.0090.00616.92
7.2.130.0060.00916.90
7.2.120.0050.00516.98
7.2.110.0080.00816.75
7.2.100.0070.01016.80
7.2.90.0070.01016.59
7.2.80.0040.01416.76
7.2.70.0060.00916.98
7.2.60.0000.01316.77
7.2.50.0070.00716.51
7.2.40.0120.00317.02
7.2.30.0070.00717.11
7.2.20.0000.01316.99
7.2.10.0070.01016.87
7.2.00.0050.00818.21
7.1.330.0030.01215.48
7.1.320.0060.00815.68
7.1.310.0050.00915.65
7.1.300.0060.00415.64
7.1.290.0070.00515.68
7.1.280.0050.01015.63
7.1.270.0020.01115.63
7.1.260.0050.00915.71
7.1.250.0070.00415.75
7.1.240.0050.00515.56
7.1.230.0090.00315.62
7.1.220.0100.00315.76
7.1.210.0110.00315.55
7.1.200.0110.00715.62
7.1.190.0060.00615.55
7.1.180.0000.01215.65
7.1.170.0060.00915.38
7.1.160.0080.00315.68
7.1.150.0000.01015.82
7.1.140.0000.00915.57
7.1.130.0000.01315.68
7.1.120.0090.00315.85
7.1.110.0100.00315.76
7.1.100.0020.01116.98
7.1.90.0040.00415.84
7.1.80.0100.00015.86
7.1.70.0020.00816.36
7.1.60.0080.00817.56
7.1.50.0070.00916.29
7.1.40.0070.00315.90
7.1.30.0040.00415.40
7.1.20.0120.00315.67
7.1.10.0030.01015.63
7.1.00.0050.04119.06
7.0.330.0060.00615.02
7.0.320.0030.01015.30
7.0.310.0080.00515.36
7.0.300.0030.01015.55
7.0.290.0030.00915.11
7.0.280.0100.00315.37
7.0.270.0030.00715.08
7.0.260.0090.00615.54
7.0.250.0100.00315.34
7.0.240.0000.00915.52
7.0.230.0040.00815.38
7.0.220.0070.00415.42
7.0.210.0100.00315.31
7.0.200.0040.00615.95
7.0.190.0050.00515.45
7.0.180.0100.00315.47
7.0.170.0030.00915.52
7.0.160.0000.01215.22
7.0.150.0090.00315.16
7.0.140.0050.04018.66
7.0.130.0070.00715.05
7.0.120.0000.01215.26
7.0.110.0050.04718.57
7.0.100.0020.04518.52
7.0.90.0070.04218.48
7.0.80.0070.04418.50
7.0.70.0090.04218.54
7.0.60.0050.03918.45
7.0.50.0030.04718.77
7.0.40.0030.04516.85
7.0.30.0020.04716.78
7.0.20.0070.04516.90
7.0.10.0070.03916.66
7.0.00.0020.04716.76
5.6.400.0090.00914.17
5.6.390.0140.00014.03
5.6.380.0090.01014.60
5.6.370.0130.00314.46
5.6.360.0040.00414.32
5.6.350.0070.00714.34
5.6.340.0080.00614.53
5.6.330.0130.00014.22
5.6.320.0000.01414.43
5.6.310.0080.00314.14
5.6.300.0030.01014.16
5.6.290.0040.00414.65
5.6.280.0050.04017.62
5.6.270.0090.00314.22
5.6.260.0020.04017.46
5.6.250.0050.03317.47
5.6.240.0070.04417.50
5.6.230.0050.04117.59
5.6.220.0030.04417.38
5.6.210.0080.04217.37
5.6.200.0030.04717.71
5.6.190.0070.04217.57
5.6.180.0080.04117.82
5.6.170.0050.04517.42
5.6.160.0090.02317.55
5.6.150.0070.04217.69
5.6.140.0020.03017.58
5.6.130.0040.02517.48
5.6.120.0040.02517.79
5.6.110.0000.03017.63
5.6.100.0030.03017.60
5.6.90.0080.02317.85
5.6.80.0050.03817.30
5.6.70.0050.02017.13
5.6.60.0050.02717.33
5.6.50.0070.03517.29
5.6.40.0040.04217.36
5.6.30.0020.04017.36
5.6.20.0080.04017.24
5.6.10.0080.03817.36
5.6.00.0070.03317.24
5.5.380.0020.04417.40
5.5.370.0070.03917.13
5.5.360.0070.03717.15
5.5.350.0090.04216.96
5.5.340.0020.05017.28
5.5.330.0040.04517.11
5.5.320.0050.04217.35
5.5.310.0050.04017.30
5.5.300.0030.04317.26
5.5.290.0030.03117.21
5.5.280.0100.02317.41
5.5.270.0070.04517.50
5.5.260.0120.02217.54
5.5.250.0010.02717.28
5.5.240.0030.03717.10
5.5.230.0040.02317.18
5.5.220.0000.03517.09
5.5.210.0100.02317.13
5.5.200.0050.03917.16
5.5.190.0050.04217.31
5.5.180.0080.03317.10
5.5.170.0050.00513.77
5.5.160.0030.03817.14
5.5.150.0000.04117.19
5.5.140.0070.02016.99
5.5.130.0050.02016.88
5.5.120.0030.04517.26
5.5.110.0080.03117.13
5.5.100.0020.04417.19
5.5.90.0060.02216.95
5.5.80.0020.02517.18
5.5.70.0030.04416.98
5.5.60.0060.03416.95
5.5.50.0090.04216.85
5.5.40.0070.04216.95
5.5.30.0030.02316.83
5.5.20.0040.04316.94
5.5.10.0050.02216.84
5.5.00.0050.03216.68
5.4.450.0020.03815.55
5.4.440.0040.02815.40
5.4.430.0020.02915.43
5.4.420.0050.02315.43
5.4.410.0030.02115.50
5.4.400.0050.02515.32
5.4.390.0030.02615.27
5.4.380.0020.04215.26
5.4.370.0090.03315.24
5.4.360.0030.04015.36
5.4.350.0030.03315.26
5.4.340.0060.02515.40
5.4.330.0000.01111.54
5.4.320.0030.03815.30
5.4.310.0070.03515.40
5.4.300.0020.03815.27
5.4.290.0050.03815.40
5.4.280.0100.03315.24
5.4.270.0030.03015.33
5.4.260.0070.03315.24
5.4.250.0050.03315.22
5.4.240.0020.03615.25
5.4.230.0010.03115.28
5.4.220.0030.02215.22
5.4.210.0040.02415.32
5.4.200.0070.02715.27
5.4.190.0050.03815.27
5.4.180.0030.02315.28
5.4.170.0020.02315.26
5.4.160.0020.02715.23
5.4.150.0030.02015.31
5.4.140.0030.04013.98
5.4.130.0070.03713.97
5.4.120.0070.03714.02
5.4.110.0050.03913.97
5.4.100.0020.04213.95
5.4.90.0090.03513.84
5.4.80.0030.03713.95
5.4.70.0020.03614.02
5.4.60.0050.02013.96
5.4.50.0070.03813.94
5.4.40.0050.03213.96
5.4.30.0030.02613.94
5.4.20.0050.03013.95
5.4.10.0050.03613.98
5.4.00.0000.04013.57
5.3.290.0000.07314.61
5.3.280.0030.06714.43
5.3.270.0030.04714.66
5.3.260.0030.07014.47
5.3.250.0030.03714.49
5.3.240.0000.07014.48
5.3.230.0000.03314.66
5.3.220.0000.04014.39
5.3.210.0030.06314.43
5.3.200.0070.03714.42
5.3.190.0070.03314.62
5.3.180.0070.06314.38
5.3.170.0030.05714.43
5.3.160.0030.03314.41
5.3.150.0000.05314.66
5.3.140.0070.07314.56
5.3.130.0000.06314.46
5.3.120.0000.06714.42
5.3.110.0030.06714.33
5.3.100.0030.04713.93
5.3.90.0030.06713.89
5.3.80.0100.05313.95
5.3.70.0000.06013.84
5.3.60.0030.03713.93
5.3.50.0000.05713.81
5.3.40.0030.05713.72
5.3.30.0000.07313.79
5.3.20.0070.06713.61
5.3.10.0100.06313.51
5.3.00.0000.03313.73
5.2.170.0000.04013.51
5.2.160.0000.05713.51
5.2.150.0030.06013.51
5.2.140.0030.03313.51
5.2.130.0000.04313.51
5.2.120.0000.05713.51
5.2.110.0000.05713.51
5.2.100.0030.04013.51
5.2.90.0000.04013.51
5.2.80.0030.04313.51
5.2.70.0000.03313.51
5.2.60.0030.06013.51
5.2.50.0030.06013.51
5.2.40.0030.04013.51
5.2.30.0000.03313.51
5.2.20.0000.03013.51
5.2.10.0000.03013.51
5.2.00.0070.02313.51
5.1.60.0100.03313.51
5.1.50.0000.04013.51
5.1.40.0030.03313.51
5.1.30.0070.05013.51
5.1.20.0000.04713.51
5.1.10.0000.02313.51
5.1.00.0000.04313.51
5.0.50.0000.03013.51
5.0.40.0030.03713.51
5.0.30.0030.04313.51
5.0.20.0000.02713.51
5.0.10.0000.03013.51
5.0.00.0000.04713.51
4.4.90.0000.01713.51
4.4.80.0000.02013.51
4.4.70.0000.03313.51
4.4.60.0030.03313.51
4.4.50.0000.03713.51
4.4.40.0000.04713.51
4.4.30.0000.02713.51
4.4.20.0000.02013.51
4.4.10.0030.01313.51
4.4.00.0070.05313.51
4.3.110.0000.04013.51
4.3.100.0030.02313.51
4.3.90.0030.02713.51
4.3.80.0000.04313.51
4.3.70.0000.03313.51
4.3.60.0000.03313.51
4.3.50.0000.03013.51
4.3.40.0000.05313.51
4.3.30.0000.02313.51
4.3.20.0000.03713.51
4.3.10.0030.03313.51
4.3.00.0030.02313.51

preferences:
38.16 ms | 400 KiB | 5 Q