3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _CC($amt,$from=''){ global $CURRENCY; if($CURRENCY['conv']===1){ $from=(!empty($from) ? $from : 'USD'); if(empty($CURRENCY[$from])){ $c=file_get_contents('http://www.google.com/ig/calculator?hl=en&q=1'.$from.'=?'.LOCAL_CURRENCY); $j=json_decode(preg_replace('/({|,)([a-z]+): /','$1"$2": ',$c)); preg_match('/\d+(?:\.\d+)?/',$j->{'rhs'},$res); $CURRENCY[$from] = $res[0]; } return bcmul($amt,$CURRENCY[$from],2); }else{ return $amt; } } define('LOCAL_CURRENCY','GBP'); $CURRENCY['conv']=1; echo _CC('1.11');

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.60.0150.00618.93
8.3.50.0150.00522.24
8.3.40.0070.01119.29
8.3.30.0060.00919.30
8.3.20.0090.00019.36
8.3.10.0080.00021.29
8.3.00.0000.00822.10
8.2.180.0070.01318.88
8.2.170.0090.00622.96
8.2.160.0090.00520.70
8.2.150.0000.00924.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00421.25
8.2.110.0100.00020.80
8.2.100.0080.00417.95
8.2.90.0040.00419.47
8.2.80.0060.00318.29
8.2.70.0040.00418.13
8.2.60.0080.00018.28
8.2.50.0030.00618.13
8.2.40.0000.00818.41
8.2.30.0030.00520.20
8.2.20.0040.00418.00
8.2.10.0000.00818.11
8.2.00.0060.00318.08
8.1.280.0090.01225.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.79
8.1.230.0000.01221.16
8.1.220.0040.00418.77
8.1.210.0050.00319.05
8.1.200.0040.00417.73
8.1.190.0000.00817.76
8.1.180.0050.00318.10
8.1.170.0000.00818.96
8.1.160.0060.00319.15
8.1.150.0060.00318.98
8.1.140.0080.00017.64
8.1.130.0000.00717.96
8.1.120.0050.00217.74
8.1.110.0050.00517.81
8.1.100.0000.00817.70
8.1.90.0000.00817.82
8.1.80.0070.00017.69
8.1.70.0000.00717.79
8.1.60.0000.00817.96
8.1.50.0030.00617.86
8.1.40.0090.00017.77
8.1.30.0030.00617.91
8.1.20.0060.00318.04
8.1.10.0030.00617.85
8.1.00.0030.00517.76
8.0.300.0030.00520.27
8.0.290.0050.00217.27
8.0.280.0000.00718.72
8.0.270.0000.00717.42
8.0.260.0030.00317.25
8.0.250.0060.00317.34
8.0.240.0000.01017.33
8.0.230.0070.00017.29
8.0.220.0000.00817.38
8.0.210.0000.00817.35
8.0.200.0000.00717.36
8.0.190.0040.00417.38
8.0.180.0110.00017.28
8.0.170.0040.00417.31
8.0.160.0070.00017.36
8.0.150.0040.00417.24
8.0.140.0040.00817.16
8.0.130.0030.00313.73
8.0.120.0030.00617.18
8.0.110.0030.00617.25
8.0.100.0000.00817.34
8.0.90.0030.00517.35
8.0.80.0060.01217.43
8.0.70.0040.00417.28
8.0.60.0040.00417.45
8.0.50.0030.00517.34
8.0.30.0160.00517.45
8.0.20.0080.01217.57
8.0.10.0070.00017.39
8.0.00.0150.00717.15
7.4.330.0030.00315.20
7.4.320.0030.00316.87
7.4.300.0000.00616.84
7.4.290.0050.00216.94
7.4.280.0040.00616.80
7.4.270.0000.00716.93
7.4.260.0000.00613.74
7.4.250.0030.00516.84
7.4.240.0040.00417.04
7.4.230.0030.00516.89
7.4.220.0100.00716.91
7.4.210.0080.00717.00
7.4.200.0040.00416.89
7.4.190.0080.00016.89
7.4.160.0110.00916.84
7.4.150.0090.01117.40
7.4.140.0040.01417.86
7.4.130.0100.00817.04
7.4.120.0070.01316.84
7.4.110.0090.00916.99
7.4.100.0120.00816.99
7.4.90.0040.01417.07
7.4.80.0120.00619.37
7.4.70.0070.01116.86
7.4.60.0060.01316.98
7.4.50.0030.00317.02
7.4.40.0090.00922.27
7.4.30.0060.01316.83
7.4.00.0070.01015.30
7.3.330.0080.00013.84
7.3.320.0030.00313.83
7.3.310.0030.00316.83
7.3.300.0050.00216.83
7.3.290.0130.00616.79
7.3.280.0080.00916.88
7.3.270.0140.01017.40
7.3.260.0130.00618.24
7.3.250.0140.00916.91
7.3.240.0090.00916.98
7.3.230.0180.00016.95
7.3.210.0170.00816.74
7.3.200.0090.00919.39
7.3.190.0130.00316.77
7.3.180.0070.01416.73
7.3.170.0080.01616.80
7.3.160.0030.01317.10
7.3.120.0040.01215.49
7.3.10.0110.00417.17
7.3.00.0050.00816.96
7.2.330.0160.00417.13
7.2.320.0180.00617.07
7.2.310.0180.00617.09
7.2.300.0130.00317.04
7.2.290.0150.00917.03
7.2.130.0070.00617.19
7.2.120.0060.00617.26
7.2.110.0080.00617.15
7.2.100.0090.00717.21
7.2.90.0020.01217.39
7.2.80.0060.00817.24
7.2.70.0050.00917.28
7.2.60.0060.00817.31
7.2.50.0050.00817.47
7.2.40.0050.00717.23
7.2.30.0060.00917.34
7.2.20.0040.00917.39
7.2.10.0050.00917.41
7.2.00.0020.01317.84
7.1.250.0030.00816.06
7.1.240.0060.00816.22
7.1.230.0080.00516.30
7.1.220.0050.00816.20
7.1.210.0060.00616.03
7.1.200.0070.00516.17
7.1.190.0080.00716.18
7.1.180.0020.01216.22
7.1.170.0090.00516.22
7.1.160.0030.01316.04
7.1.150.0090.00516.18
7.1.140.0070.00716.10
7.1.130.0060.00516.32
7.1.120.0050.01116.23
7.1.110.0050.00816.34
7.1.100.0050.00916.86
7.1.90.0090.00616.12
7.1.80.0020.01316.38
7.1.70.0070.00616.69
7.1.60.0060.01117.37
7.1.50.0080.01016.63
7.1.40.0050.00716.17
7.1.30.0080.00516.06
7.1.20.0050.00816.26
7.1.10.0050.00616.16
7.1.00.0040.02818.29
7.0.330.0090.00915.95
7.0.320.0030.00615.87
7.0.310.0050.01015.92
7.0.300.0060.00715.77
7.0.290.0060.00815.74
7.0.280.0080.00515.84
7.0.270.0130.00015.78
7.0.260.0050.00715.82
7.0.250.0070.00715.92
7.0.240.0040.00916.05
7.0.230.0040.00615.79
7.0.220.0090.00515.60
7.0.210.0050.00715.94
7.0.200.0050.00816.15
7.0.190.0100.00815.78
7.0.180.0050.00615.75
7.0.170.0010.01015.65
7.0.160.0040.00915.99
7.0.150.0090.00416.01
7.0.140.0070.03117.94
7.0.130.0090.00515.95
7.0.120.0030.00815.95
7.0.110.0070.00716.01
7.0.100.0030.00915.93
7.0.90.0030.00915.83
7.0.80.0060.00915.81
7.0.70.0060.00615.81
7.0.60.0040.02818.02
7.0.50.0080.03118.06
7.0.40.0060.02516.09
7.0.30.0050.01915.96
7.0.20.0080.02516.12
7.0.10.0030.03016.21
7.0.00.0050.03316.09
5.6.380.0050.00914.89
5.6.370.0020.01114.76
5.6.360.0060.00614.63
5.6.350.0050.01014.70
5.6.340.0040.00914.94
5.6.330.0070.00714.86
5.6.320.0050.00914.95
5.6.310.0070.00514.64
5.6.300.0050.01014.76
5.6.290.0090.00414.44
5.6.280.0030.03216.88
5.6.270.0090.00414.77
5.6.260.0050.01114.86
5.6.250.0060.00714.64
5.6.240.0080.00314.81
5.6.230.0070.00614.84
5.6.220.0080.00614.69
5.6.210.0060.03016.70
5.6.200.0060.02316.93
5.6.190.0090.02917.02
5.6.180.0040.02617.04
5.6.170.0100.02517.09
5.6.160.0070.02616.98
5.6.150.0080.03116.97
5.6.140.0080.02816.91
5.6.130.0090.02117.05
5.6.120.0050.03417.00
5.6.110.0060.03016.90
5.6.100.0030.03516.94
5.6.90.0080.03016.98
5.6.80.0080.02416.69
5.6.70.0070.02616.70
5.6.60.0050.03416.60
5.6.50.0080.02716.84
5.6.40.0070.01816.79
5.6.30.0070.01616.72
5.6.20.0010.03216.75
5.6.10.0050.02816.77
5.6.00.0040.02916.74
5.5.380.0030.00611.55
5.5.370.0040.00811.47
5.5.360.0040.00611.59
5.5.350.0060.02614.46
5.5.340.0040.01814.90
5.5.330.0060.02814.69
5.5.320.0040.02514.82
5.5.310.0060.02914.82
5.5.300.0070.02814.79
5.5.290.0030.03014.92
5.5.280.0030.03314.84
5.5.270.0040.02814.82
5.5.260.0010.03014.63
5.5.250.0080.02414.60
5.5.240.0020.02814.63
5.5.230.0040.02414.66
5.5.220.0060.02114.39
5.5.210.0040.02614.52
5.5.200.0030.02114.48
5.5.190.0060.02814.47
5.5.180.0040.02714.66
5.5.170.0040.00612.99
5.5.160.0050.02814.57
5.5.150.0050.03214.51
5.5.140.0040.03114.46
5.5.130.0010.03214.47
5.5.120.0030.02814.53
5.5.110.0070.02514.42
5.5.100.0040.03014.52
5.5.90.0080.02114.47
5.5.80.0040.03214.50
5.5.70.0020.02314.47
5.5.60.0040.03014.29
5.5.50.0050.03014.39
5.5.40.0010.03214.43
5.5.30.0050.02714.49
5.5.20.0020.02514.51
5.5.10.0030.02614.36
5.5.00.0060.02714.49
5.4.450.0070.02314.31
5.4.440.0040.03114.30
5.4.430.0040.02614.35
5.4.420.0060.02914.28
5.4.410.0020.03214.40
5.4.400.0030.02914.12
5.4.390.0060.02614.05
5.4.380.0030.03014.07
5.4.370.0090.02414.26
5.4.360.0020.02114.28
5.4.350.0070.01914.03
5.4.340.0060.01914.05
5.4.330.0080.00411.61
5.4.320.0020.03114.08
5.4.310.0050.02714.13
5.4.300.0010.02514.04
5.4.290.0040.02514.03
5.4.280.0040.03214.03
5.4.270.0050.02214.13
5.4.260.0080.02914.17
5.4.250.0040.02814.20
5.4.240.0020.02514.14
5.4.230.0010.02613.99
5.4.220.0030.02914.05
5.4.210.0030.02914.04
5.4.200.0050.02714.04
5.4.190.0080.02514.09
5.4.180.0030.03214.13
5.4.170.0040.02814.14
5.4.160.0050.02814.06
5.4.150.0040.02814.00
5.4.140.0060.02313.39
5.4.130.0040.02713.25
5.4.120.0040.03013.20
5.4.110.0020.02913.34
5.4.100.0050.02213.18
5.4.90.0070.02613.33
5.4.80.0080.02513.22
5.4.70.0040.02813.36
5.4.60.0050.02513.29
5.4.50.0040.02713.10
5.4.40.0040.01713.18
5.4.30.0040.02613.14
5.4.20.0020.02413.34
5.4.10.0030.02913.20
5.4.00.0060.01713.10
5.3.290.0020.03212.29
5.3.280.0070.02312.29
5.3.270.0030.02812.19
5.3.260.0040.02912.20
5.3.250.0070.02612.34
5.3.240.0050.02812.31
5.3.230.0080.02612.30
5.3.220.0040.02512.19
5.3.210.0040.03112.28
5.3.200.0010.02612.18
5.3.190.0020.02912.28
5.3.180.0050.02612.35
5.3.170.0020.02812.29
5.3.160.0050.02712.32
5.3.150.0030.03112.36
5.3.140.0020.03112.30
5.3.130.0030.02312.34
5.3.120.0030.02812.19
5.3.110.0040.03012.23
5.3.100.0050.02312.13
5.3.90.0080.02512.02
5.3.80.0040.02612.08
5.3.70.0050.02412.11
5.3.60.0080.02412.08
5.3.50.0040.03012.07
5.3.40.0040.02711.96
5.3.30.0040.02112.06
5.3.20.0020.02712.01
5.3.10.0060.02411.85
5.3.00.0020.02311.80
5.2.170.0030.02610.81
5.2.160.0050.02110.87
5.2.150.0000.02110.81
5.2.140.0020.01710.86
5.2.130.0040.02110.86
5.2.120.0050.01610.83
5.2.110.0030.02210.86
5.2.100.0030.02010.79
5.2.90.0060.02310.88
5.2.80.0010.02610.86
5.2.70.0030.02410.85
5.2.60.0020.02810.84
5.2.50.0040.02110.83
5.2.40.0010.02210.76
5.2.30.0090.01810.82
5.2.20.0030.02210.84
5.2.10.0040.02310.71
5.2.00.0030.02610.67
5.1.60.0020.02310.43
5.1.50.0020.02010.43
5.1.40.0010.02210.50
5.1.30.0030.02310.62
5.1.20.0040.02010.54
5.1.10.0050.02010.51
5.1.00.0030.01710.52
5.0.50.0040.01810.02
5.0.40.0040.01310.02
5.0.30.0030.02410.02
5.0.20.0030.01810.02
5.0.10.0040.01510.02
5.0.00.0050.02010.02
4.4.90.0050.01010.02
4.4.80.0010.01410.02
4.4.70.0040.01010.02
4.4.60.0070.01010.02
4.4.50.0040.00910.02
4.4.40.0020.02110.02
4.4.30.0030.01410.02
4.4.20.0000.01510.02
4.4.10.0030.01110.02
4.4.00.0020.01810.02
4.3.110.0030.01410.02
4.3.100.0050.01110.02
4.3.90.0040.01310.02
4.3.80.0020.01910.02
4.3.70.0010.01510.02
4.3.60.0030.01210.02
4.3.50.0010.01510.02
4.3.40.0030.01910.02
4.3.30.0040.01310.02
4.3.20.0020.01310.02
4.3.10.0020.01410.02
4.3.00.0070.01110.02

preferences:
51.82 ms | 401 KiB | 5 Q