3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '((ln(800) + 20) - 800 / 2)'; $tokens = token_get_all("<?php {$input}"); $expr = ''; foreach($tokens as $token){ if(is_string($token)){ if(in_array($token, array('(', ')', '+', '-', '/', '*'), true)){ $expr .= $token; print "\n symbol: " . $expr; } continue; } list($id, $text) = $token; if(in_array($id, array(T_DNUMBER, T_LNUMBER))){ $expr .= $text; print "\n number: " . $expr; } } 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.0110.01118.55
8.3.50.0120.01022.11
8.3.40.0120.00318.64
8.3.30.0140.00718.73
8.3.20.0040.00418.90
8.3.10.0080.00019.31
8.3.00.0080.00023.57
8.2.180.0090.00918.29
8.2.170.0070.01422.96
8.2.160.0070.01120.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00019.66
8.2.110.0060.01220.35
8.2.100.0000.01217.72
8.2.90.0000.00819.22
8.2.80.0000.00818.03
8.2.70.0070.00317.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0080.00018.28
8.2.30.0030.00521.11
8.2.20.0040.00417.72
8.2.10.0040.00417.64
8.2.00.0080.00017.90
8.1.280.0120.00925.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.54
8.1.230.0040.00720.88
8.1.220.0080.00018.77
8.1.210.0050.00318.82
8.1.200.0060.00317.38
8.1.190.0050.00317.53
8.1.180.0000.00918.10
8.1.170.0000.00818.48
8.1.160.0000.00818.96
8.1.150.0080.00018.70
8.1.140.0050.00317.48
8.1.130.0030.00517.80
8.1.120.0070.00017.46
8.1.110.0060.00317.38
8.1.100.0040.00417.47
8.1.90.0040.00417.53
8.1.80.0000.00717.44
8.1.70.0030.00317.37
8.1.60.0000.00817.60
8.1.50.0040.00417.39
8.1.40.0000.01017.53
8.1.30.0040.00417.66
8.1.20.0090.00017.67
8.1.10.0070.00017.57
8.1.00.0000.00817.54
8.0.300.0000.00720.09
8.0.290.0000.00717.18
8.0.280.0030.00318.37
8.0.270.0030.00317.19
8.0.260.0000.00616.79
8.0.250.0000.00716.97
8.0.240.0100.00017.00
8.0.230.0030.00316.98
8.0.220.0070.00316.93
8.0.210.0030.00316.93
8.0.200.0000.00717.03
8.0.190.0000.00716.98
8.0.180.0040.00416.96
8.0.170.0040.00416.93
8.0.160.0000.00816.82
8.0.150.0040.00416.87
8.0.140.0040.00416.76
8.0.130.0060.00013.30
8.0.120.0000.00716.86
8.0.110.0040.00416.79
8.0.100.0000.00716.73
8.0.90.0000.00716.86
8.0.80.0100.00716.89
8.0.70.0000.00716.86
8.0.60.0000.00716.70
8.0.50.0040.00416.81
8.0.30.0100.01317.15
8.0.20.0110.00917.40
8.0.10.0050.00216.91
8.0.00.0120.01316.64
7.4.330.0020.00214.83
7.4.320.0030.00316.51
7.4.300.0000.00616.56
7.4.290.0070.00016.38
7.4.280.0000.00716.60
7.4.270.0070.00016.63
7.4.260.0030.00313.23
7.4.250.0040.00416.46
7.4.240.0030.00316.61
7.4.230.0030.00316.50
7.4.220.0110.00716.37
7.4.210.0120.00816.58
7.4.200.0030.00316.41
7.4.190.0030.00316.42
7.4.160.0100.01316.61
7.4.150.0060.01217.40
7.4.140.0000.01717.86
7.4.130.0090.01116.46
7.4.120.0030.01416.45
7.4.110.0110.00616.41
7.4.100.0030.02016.57
7.4.90.0130.00616.40
7.4.80.0080.00819.39
7.4.70.0070.01016.34
7.4.60.0070.01016.43
7.4.50.0050.00316.41
7.4.40.0060.00622.52
7.4.30.0060.01616.64
7.4.10.0130.00714.99
7.4.00.0090.00514.93
7.3.330.0050.00013.18
7.3.320.0060.00013.18
7.3.310.0030.00616.20
7.3.300.0070.00016.21
7.3.290.0100.00616.34
7.3.280.0090.00916.37
7.3.270.0120.00417.40
7.3.260.0140.01418.24
7.3.250.0100.00816.37
7.3.240.0070.01016.33
7.3.230.0130.00316.40
7.3.210.0130.00716.45
7.3.200.0080.00819.39
7.3.190.0100.01316.45
7.3.180.0100.00516.35
7.3.170.0040.01216.49
7.3.160.0060.00916.58
7.3.130.0030.01614.88
7.3.120.0110.00314.99
7.3.110.0110.00614.82
7.3.100.0000.01314.55
7.3.90.0030.01414.91
7.3.80.0090.00314.72
7.3.70.0030.00714.70
7.3.60.0120.00314.75
7.3.50.0120.00615.02
7.3.40.0070.01014.61
7.3.30.0040.00714.96
7.3.20.0030.01316.54
7.3.10.0050.00816.59
7.3.00.0050.00716.69
7.2.330.0170.00416.70
7.2.320.0150.00616.59
7.2.310.0130.01016.41
7.2.300.0090.00916.77
7.2.290.0100.01116.59
7.2.260.0070.00715.18
7.2.250.0070.00714.95
7.2.240.0070.00714.61
7.2.230.0090.00614.80
7.2.220.0030.00715.02
7.2.210.0060.00615.21
7.2.200.0060.00615.00
7.2.190.0090.00615.20
7.2.180.0070.01315.20
7.2.170.0100.00715.07
7.2.160.0090.00315.07
7.2.150.0110.00416.74
7.2.140.0030.01316.58
7.2.130.0050.00616.93
7.2.120.0090.00516.81
7.2.110.0050.01216.80
7.2.100.0090.00516.84
7.2.90.0070.00716.85
7.2.80.0030.01017.03
7.2.70.0090.00616.98
7.2.60.0060.00716.98
7.2.50.0060.01016.85
7.2.40.0060.00816.96
7.2.30.0060.00916.90
7.2.20.0020.01316.88
7.2.10.0090.00716.84
7.2.00.0070.00517.61
7.1.330.0030.01015.88
7.1.320.0060.01016.04
7.1.310.0070.01015.85
7.1.300.0060.00915.91
7.1.290.0090.00615.86
7.1.280.0110.00415.87
7.1.270.0030.01315.86
7.1.260.0060.00615.83
7.1.250.0050.00915.91
7.1.240.0000.01715.64
7.1.230.0070.01015.77
7.1.220.0100.00715.90
7.1.210.0040.01215.50
7.1.200.0030.01015.61
7.1.190.0100.00315.62
7.1.180.0100.00315.89
7.1.170.0060.00615.63
7.1.160.0060.00615.82
7.1.150.0040.01115.80
7.1.140.0090.00315.61
7.1.130.0070.00715.95
7.1.120.0030.01015.82
7.1.110.0070.00715.82
7.1.100.0060.00817.05
7.1.90.0030.00615.86
7.1.80.0040.00715.78
7.1.70.0030.01016.43
7.1.60.0110.00917.59
7.1.50.0020.01416.33
7.1.40.0000.01315.71
7.1.30.0040.01115.79
7.1.20.0040.01115.69
7.1.10.0030.01315.62
7.1.00.0060.04019.27
7.0.330.0060.00615.23
7.0.320.0070.01115.48
7.0.310.0030.00615.42
7.0.300.0040.00415.64
7.0.290.0080.00815.13
7.0.280.0040.00815.31
7.0.270.0040.00515.27
7.0.260.0040.01115.23
7.0.250.0030.00615.45
7.0.240.0000.01215.50
7.0.230.0040.01115.61
7.0.220.0030.00915.48
7.0.210.0070.00715.34
7.0.200.0010.01016.10
7.0.190.0000.01515.51
7.0.180.0030.01015.57
7.0.170.0000.01415.43
7.0.160.0040.00815.59
7.0.150.0070.00715.21
7.0.140.0030.03818.89
7.0.130.0090.00015.44
7.0.120.0030.00715.23
7.0.110.0090.00615.57
7.0.100.0060.00815.56
7.0.90.0060.00615.57
7.0.80.0030.00715.32
7.0.70.0000.04818.54
7.0.60.0050.04318.49
7.0.50.0030.04818.82
7.0.40.0040.04216.62
7.0.30.0070.03016.67
7.0.20.0100.03116.87
7.0.10.0060.04216.74
7.0.00.0020.04716.64
5.6.400.0130.00314.16
5.6.390.0030.00514.57
5.6.380.0140.00014.54
5.6.370.0090.00614.50
5.6.360.0030.01014.44
5.6.350.0040.01114.28
5.6.340.0110.00414.39
5.6.330.0040.01114.39
5.6.320.0060.00614.45
5.6.310.0030.01014.39
5.6.300.0070.00314.30
5.6.290.0060.00614.77
5.6.280.0050.05117.74
5.6.270.0060.00914.50
5.6.260.0000.01514.55
5.6.250.0060.00314.39
5.6.240.0090.00314.22
5.6.230.0000.01114.18
5.6.220.0060.03817.49
5.6.210.0010.03617.43
5.6.200.0070.04017.74
5.6.190.0000.05117.69
5.6.180.0000.03617.88
5.6.170.0020.04517.78
5.6.160.0020.04817.63
5.6.150.0030.03617.57
5.6.140.0070.04217.80
5.6.130.0030.03817.78
5.6.120.0050.03017.77
5.6.110.0050.04517.61
5.6.100.0050.04717.67
5.6.90.0060.03317.71
5.6.80.0090.03917.50
5.6.70.0060.04317.32
5.6.60.0020.04617.51
5.6.50.0060.03917.35
5.6.40.0030.04217.50
5.6.30.0060.04317.25
5.6.20.0040.02517.34
5.6.10.0020.02717.26
5.6.00.0070.02217.42
5.5.380.0000.00914.40
5.5.370.0080.00414.04
5.5.360.0060.03917.37
5.5.350.0120.03817.37
5.5.340.0030.04117.71
5.5.330.0040.04817.35
5.5.320.0050.04417.46
5.5.310.0030.04817.60
5.5.300.0080.04217.44
5.5.290.0030.03917.66
5.5.280.0040.04417.50
5.5.270.0030.05017.66
5.5.260.0050.04117.46
5.5.250.0080.03317.38
5.5.240.0090.02817.27
5.5.230.0000.04617.03
5.5.220.0070.03217.34
5.5.210.0090.04217.17
5.5.200.0080.03717.04
5.5.190.0150.03317.40
5.5.180.0030.03317.07
5.5.170.0070.00313.98
5.5.160.0060.03217.20
5.5.150.0040.04617.15
5.5.140.0030.04217.11
5.5.130.0030.03717.12
5.5.120.0070.02317.13
5.5.110.0060.03817.23
5.5.100.0030.03316.95
5.5.90.0000.04917.22
5.5.80.0080.03517.01
5.5.70.0070.04517.13
5.5.60.0030.04517.16
5.5.50.0070.03317.06
5.5.40.0020.04416.96
5.5.30.0090.04017.12
5.5.20.0050.03317.00
5.5.10.0080.02717.25
5.5.00.0050.03616.99
5.4.450.0020.04415.85
5.4.440.0080.03515.86
5.4.430.0070.04115.93
5.4.420.0090.02316.00
5.4.410.0100.03615.90
5.4.400.0030.03815.80
5.4.390.0030.04415.73
5.4.380.0030.04415.68
5.4.370.0030.03215.84
5.4.360.0030.04315.69
5.4.350.0050.03315.81
5.4.340.0030.02515.77
5.4.330.0030.00612.56
5.4.320.0030.03715.84
5.4.310.0050.02815.85
5.4.300.0000.04315.84
5.4.290.0030.04315.68
5.4.280.0070.04215.80
5.4.270.0020.04215.75
5.4.260.0080.03715.84
5.4.250.0050.03015.82
5.4.240.0050.03915.89
5.4.230.0000.03915.84
5.4.220.0050.04215.80
5.4.210.0050.03815.76
5.4.200.0050.03515.68
5.4.190.0100.03715.76
5.4.180.0080.03215.85
5.4.170.0030.02915.76
5.4.160.0030.04315.67
5.4.150.0020.02215.75
5.4.140.0050.03114.45
5.4.130.0040.03114.33
5.4.120.0020.02114.45
5.4.110.0020.03514.39
5.4.100.0030.03714.40
5.4.90.0000.03514.43
5.4.80.0040.03914.43
5.4.70.0020.03414.44
5.4.60.0050.03514.43
5.4.50.0030.03714.48
5.4.40.0060.03514.49
5.4.30.0030.03314.37
5.4.20.0050.03714.42
5.4.10.0030.03114.42
5.4.00.0030.02814.16
5.3.290.0080.04013.53
5.3.280.0030.04513.58
5.3.270.0050.03813.59
5.3.260.0010.03013.52
5.3.250.0060.03913.58
5.3.240.0060.03613.57
5.3.230.0020.02613.54
5.3.220.0010.02313.58
5.3.210.0030.04313.50
5.3.200.0030.04213.50
5.3.190.0060.03813.55
5.3.180.0020.03813.56
5.3.170.0040.03813.49
5.3.160.0020.03213.57
5.3.150.0070.03813.56
5.3.140.0020.03413.48
5.3.130.0020.02413.47
5.3.120.0060.04013.53
5.3.110.0000.03213.53
5.3.100.0060.03313.23
5.3.90.0050.04213.27
5.3.80.0020.04213.29
5.3.70.0020.03513.22
5.3.60.0090.03713.22
5.3.50.0020.03913.22
5.3.40.0050.04013.19
5.3.30.0080.03313.12
5.3.20.0040.03913.13
5.3.10.0030.03513.08
5.3.00.0040.01812.99
5.2.170.0000.06311.30
5.2.160.0100.05711.30
5.2.150.0000.05011.30
5.2.140.0000.06011.30
5.2.130.0000.06311.30
5.2.120.0000.04011.30
5.2.110.0030.06011.30
5.2.100.0000.03011.30
5.2.90.0030.02711.30
5.2.80.0070.02311.30
5.2.70.0000.03011.30
5.2.60.0000.06011.30
5.2.50.0000.05311.30
5.2.40.0070.02311.30
5.2.30.0000.03011.30
5.2.20.0070.03011.30
5.2.10.0030.02311.30
5.2.00.0100.03711.30
5.1.60.0000.02711.30
5.1.50.0030.02311.30
5.1.40.0070.02311.30
5.1.30.0000.03011.30
5.1.20.0030.02311.30
5.1.10.0000.02711.30
5.1.00.0000.03011.30
5.0.50.0000.02011.30
5.0.40.0000.02011.30
5.0.30.0000.03011.30
5.0.20.0000.01711.30
5.0.10.0000.01711.30
5.0.00.0000.02311.30
4.4.90.0000.01711.30
4.4.80.0030.01311.30
4.4.70.0000.01711.30
4.4.60.0000.01711.30
4.4.50.0000.01711.30
4.4.40.0000.02311.30
4.4.30.0030.01311.30
4.4.20.0000.01311.30
4.4.10.0000.01311.30
4.4.00.0000.02311.30
4.3.110.0030.01011.30
4.3.100.0030.01011.30
4.3.90.0000.01311.30
4.3.80.0030.01711.30
4.3.70.0000.01311.30
4.3.60.0000.01311.30
4.3.50.0000.01311.30
4.3.40.0000.02011.30
4.3.30.0000.02011.30
4.3.20.0000.01311.30
4.3.10.0000.01311.30
4.3.00.0000.01311.30

preferences:
49.14 ms | 401 KiB | 5 Q