3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'pow(round((PROVISIO-OVHN)*3.2)*2,2)'; $tokens = token_get_all("<?php {$input}"); $expr = ''; foreach($tokens as $token){ if(is_string($token)){ if(in_array($token, array('(', ')', '+', '-', '/', '*'), true)) $expr .= $token; continue; } list($id, $text) = $token; if(in_array($id, array(T_DNUMBER, T_LNUMBER))) $expr .= $text; } eval("\$result = {$expr};"); print "\nexpr = " . $expr; print "\nres = " . $result;

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.0180.00016.75
8.3.50.0130.00621.28
8.3.40.0070.00718.95
8.3.30.0110.00318.95
8.3.20.0040.00420.30
8.3.10.0040.00423.64
8.3.00.0070.00719.81
8.2.180.0160.00316.50
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0110.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00817.88
8.2.110.0030.00622.25
8.2.100.0110.00017.75
8.2.90.0030.00619.35
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00418.00
8.2.50.0090.00018.07
8.2.40.0030.00519.30
8.2.30.0000.00819.97
8.2.20.0090.00017.79
8.2.10.0040.00418.00
8.2.00.0040.00418.06
8.1.280.0040.01425.92
8.1.270.0120.00820.32
8.1.260.0080.00026.35
8.1.250.0070.00728.09
8.1.240.0060.00322.59
8.1.230.0030.00917.48
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0050.00317.36
8.1.180.0000.00818.10
8.1.170.0060.00318.50
8.1.160.0050.00222.02
8.1.150.0040.00418.88
8.1.140.0040.00417.34
8.1.130.0030.00317.71
8.1.120.0040.00417.49
8.1.110.0000.00717.43
8.1.100.0020.00517.40
8.1.90.0030.00517.40
8.1.80.0030.00517.41
8.1.70.0000.00717.39
8.1.60.0040.00417.63
8.1.50.0060.00317.39
8.1.40.0040.00417.50
8.1.30.0060.00317.66
8.1.20.0040.00417.56
8.1.10.0050.00217.66
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.34
8.0.270.0030.00317.24
8.0.260.0000.00617.31
8.0.250.0000.00717.04
8.0.240.0030.00317.10
8.0.230.0040.00417.09
8.0.220.0040.00416.98
8.0.210.0070.00016.95
8.0.200.0070.00016.92
8.0.190.0000.00817.00
8.0.180.0000.00716.96
8.0.170.0000.00816.89
8.0.160.0080.00017.04
8.0.150.0070.00016.87
8.0.140.0050.00516.93
8.0.130.0030.00313.43
8.0.120.0000.00816.89
8.0.110.0040.00416.92
8.0.100.0040.00416.87
8.0.90.0080.00016.91
8.0.80.0070.01016.93
8.0.70.0000.00716.78
8.0.60.0000.00716.86
8.0.50.0030.00616.91
8.0.30.0080.01017.08
8.0.20.0140.00817.45
8.0.10.0070.00017.08
8.0.00.0100.00816.83
7.4.330.0050.00015.24
7.4.320.0000.00616.44
7.4.300.0060.00016.62
7.4.290.0000.00716.67
7.4.280.0000.00816.54
7.4.270.0030.00616.63
7.4.260.0070.00016.59
7.4.250.0000.00716.50
7.4.240.0050.00316.62
7.4.230.0040.00416.51
7.4.220.0140.00416.37
7.4.210.0070.00916.59
7.4.200.0070.00016.42
7.4.160.0070.00716.38
7.4.150.0200.00317.40
7.4.140.0100.01017.86
7.4.130.0130.00616.56
7.4.120.0090.01016.50
7.4.110.0040.01516.63
7.4.100.0060.01316.58
7.4.90.0090.00916.45
7.4.80.0110.01119.39
7.4.70.0100.00716.50
7.4.60.0070.01016.66
7.4.50.0040.00416.45
7.4.40.0040.01416.55
7.4.30.0070.01416.29
7.4.00.0030.00814.88
7.3.330.0000.00613.25
7.3.320.0000.00613.30
7.3.310.0050.00216.27
7.3.300.0000.00716.38
7.3.290.0000.00616.31
7.3.280.0060.01216.43
7.3.270.0080.00917.40
7.3.260.0100.01316.45
7.3.250.0110.00816.54
7.3.240.0160.00016.46
7.3.230.0120.01316.51
7.3.210.0170.00016.41
7.3.200.0030.01316.41
7.3.190.0140.00616.54
7.3.180.0060.01016.29
7.3.170.0000.02316.49
7.3.160.0060.01216.38
7.3.10.0030.01016.53
7.3.00.0000.01216.70
7.2.330.0130.00416.75
7.2.320.0110.01116.71
7.2.310.0100.00716.70
7.2.300.0100.01016.80
7.2.290.0130.01016.52
7.2.130.0000.01317.04
7.2.120.0030.01316.95
7.2.110.0040.00816.94
7.2.100.0000.01317.12
7.2.90.0100.00316.86
7.2.80.0030.01017.02
7.2.70.0070.00717.02
7.2.60.0040.01016.98
7.2.50.0000.01217.04
7.2.40.0030.00917.20
7.2.30.0130.00316.79
7.2.20.0070.00716.77
7.2.10.0090.00317.01
7.2.00.0050.00618.35
7.1.250.0080.00015.86
7.1.200.0090.00615.95
7.1.100.0030.01417.95
7.1.70.0040.00417.34
7.1.60.0060.01320.03
7.1.50.0090.01517.11
7.1.00.0030.07722.46
7.0.200.0000.00916.93
7.0.60.0130.08020.03
7.0.50.0070.03717.97
7.0.40.0070.05019.96
7.0.30.0400.04720.13
7.0.20.0200.05320.25
7.0.10.0130.05020.12
7.0.00.0030.08720.15
5.6.280.0030.04021.11
5.6.210.0100.07720.72
5.6.200.0100.08318.20
5.6.190.0030.06020.52
5.6.180.3430.04720.55
5.6.170.0230.08320.48
5.6.160.0000.05720.54
5.6.150.0070.08318.25
5.6.140.0000.07318.18
5.6.130.0130.06718.17
5.6.120.0100.08321.03
5.6.110.0270.06720.98
5.6.100.0030.06721.13
5.6.90.0170.07320.99
5.6.80.0200.07320.50
5.6.70.2300.03720.38
5.5.350.0270.07020.49
5.5.340.0000.05317.97
5.5.330.0130.07020.29
5.5.320.0230.05020.24
5.5.310.0300.04720.37
5.5.300.0100.05017.91
5.5.290.0070.08017.98
5.5.280.0130.09020.87
5.5.270.0070.08720.97
5.5.260.0030.04020.68
5.5.250.0070.07320.50
5.5.240.0230.08320.26
5.4.450.0670.07019.11
5.4.440.0570.05719.32
5.4.430.0570.05719.12
5.4.420.0470.05719.32
5.4.410.0570.04319.44
5.4.400.0530.04719.25
5.4.390.0530.04719.07
5.4.380.0430.05319.04
5.4.370.0470.05319.05
5.4.360.0430.06019.24
5.4.350.0470.05319.08
5.4.340.0500.05019.23
5.4.320.0530.05719.22
5.4.310.0400.05319.09
5.4.300.0600.04719.24
5.4.290.0630.04719.24
5.4.280.0470.05019.21
5.4.270.0430.05319.21
5.4.260.0500.05318.96
5.4.250.0500.04718.98
5.4.240.0430.05319.07
5.4.230.0370.05719.06
5.4.220.0470.05019.32
5.4.210.0530.05319.19
5.4.200.0530.06019.24
5.4.190.0600.04718.92
5.4.180.0430.05318.80
5.4.170.0400.06019.33
5.4.160.0600.04718.79
5.4.150.0530.05718.93
5.4.140.0570.04716.35
5.4.130.0600.04016.41
5.4.120.0470.06016.39
5.4.110.0600.04316.60
5.4.100.0530.04716.62
5.4.90.0530.04716.62
5.4.80.0500.05016.24
5.4.70.0570.05716.70
5.4.60.0530.05016.39
5.4.50.0700.05016.57
5.4.40.0500.06016.26
5.4.30.0530.05716.22
5.4.20.0570.04716.55
5.4.10.0530.05016.40
5.4.00.0800.04716.01
5.3.290.0600.05014.64
5.3.280.0600.06014.61
5.3.270.0470.06014.50
5.3.260.0530.05314.47
5.3.250.0700.06014.46
5.3.240.0400.05714.50
5.3.230.0370.06014.56
5.3.220.0530.04314.49
5.3.210.0470.06014.41
5.3.200.0330.05714.42
5.3.190.0470.04714.57
5.3.180.0470.04714.43
5.3.170.0430.04714.57
5.3.160.0500.04314.56
5.3.150.0500.04714.53
5.3.140.0370.05714.41
5.3.130.0400.05714.46
5.3.120.0530.04314.39
5.3.110.0470.05014.50
5.3.100.0300.06014.14
5.3.90.0500.04313.83
5.3.80.0400.05013.97
5.3.70.0430.05013.87
5.3.60.0500.04014.03
5.3.50.0500.04313.93
5.3.40.0630.04313.91
5.3.30.0570.04013.81
5.3.20.0530.05013.59
5.3.10.0500.05013.46
5.3.00.0600.04313.67
5.2.170.0500.03711.13
5.2.160.0430.03311.15
5.2.150.0400.03711.02
5.2.140.0330.04311.12
5.2.130.0400.04310.97
5.2.120.0630.04710.98
5.2.110.0430.04011.05
5.2.100.0470.03310.96
5.2.90.0470.03711.07
5.2.80.0430.04310.91
5.2.70.0530.03710.96
5.2.60.0470.04011.00
5.2.50.0570.03710.97
5.2.40.0430.04310.85
5.2.30.0430.03711.04
5.2.20.0400.03710.83
5.2.10.0300.04310.74
5.2.00.0430.03710.67
5.1.60.0430.03310.16
5.1.50.0370.0379.94
5.1.40.0370.03710.07
5.1.30.0470.03310.26
5.1.20.0330.03710.37
5.1.10.0400.0379.93
5.1.00.0370.0379.98
5.0.50.0200.0278.72
5.0.40.0200.0278.31
5.0.30.0200.0408.23
5.0.20.0200.0238.28
5.0.10.0230.0208.41
5.0.00.0200.0408.21
4.4.90.0170.0237.02
4.4.80.0130.0237.02
4.4.70.0130.0237.02
4.4.60.0130.0237.02
4.4.50.0170.0207.02
4.4.40.0200.0277.02
4.4.30.0330.0277.02
4.4.20.0200.0307.02
4.4.10.0200.0207.02
4.4.00.0200.0337.02
4.3.110.0200.0207.02
4.3.100.0130.0237.02
4.3.90.0200.0207.02
4.3.80.0230.0337.02
4.3.70.0270.0137.02
4.3.60.0230.0177.02
4.3.50.0130.0237.02
4.3.40.0300.0307.02
4.3.30.0170.0177.02
4.3.20.0030.0277.02
4.3.10.0100.0307.02
4.3.00.0170.0237.02

preferences:
48.43 ms | 401 KiB | 5 Q