3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '((800 + 20) - 800 / 2) + eval("<?ph= exec(\"whoami\")");'; $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; } $result = eval("return ({$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.0000.01818.56
8.3.50.0060.01121.97
8.3.40.0070.00719.09
8.3.30.0080.00619.16
8.3.20.0080.00020.13
8.3.10.0070.00023.78
8.3.00.0040.00422.59
8.2.180.0160.00018.54
8.2.170.0090.00622.96
8.2.160.0070.01022.12
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0000.00726.16
8.2.120.0060.00317.88
8.2.110.0000.00920.46
8.2.100.0040.00818.03
8.2.90.0080.00019.17
8.2.80.0000.00717.97
8.2.70.0040.00417.75
8.2.60.0000.00817.68
8.2.50.0080.00018.07
8.2.40.0030.00618.16
8.2.30.0030.00618.13
8.2.20.0030.00517.72
8.2.10.0000.00817.75
8.2.00.0030.00517.79
8.1.280.0140.00425.92
8.1.270.0030.00522.20
8.1.260.0040.00426.35
8.1.250.0150.00328.09
8.1.240.0060.00623.75
8.1.230.0040.00820.97
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.63
8.1.180.0030.00518.10
8.1.170.0000.00918.57
8.1.160.0030.00522.02
8.1.150.0000.00918.56
8.1.140.0040.00417.46
8.1.130.0070.00017.83
8.1.120.0070.00017.37
8.1.110.0080.00017.44
8.1.100.0000.00717.37
8.1.90.0070.00017.48
8.1.80.0040.00417.43
8.1.70.0000.00717.35
8.1.60.0030.00617.55
8.1.50.0040.00417.48
8.1.40.0040.00417.45
8.1.30.0060.00317.67
8.1.20.0030.00517.70
8.1.10.0060.00317.43
8.1.00.0050.00317.38
8.0.300.0030.00318.77
8.0.290.0070.00017.16
8.0.280.0040.00418.32
8.0.270.0030.00317.32
8.0.260.0000.00616.86
8.0.250.0000.00717.02
8.0.240.0000.00917.01
8.0.230.0000.00816.88
8.0.220.0040.00416.93
8.0.210.0000.00716.92
8.0.200.0030.00317.00
8.0.190.0000.00817.05
8.0.180.0030.00517.00
8.0.170.0000.00816.87
8.0.160.0040.00416.86
8.0.150.0050.00216.87
8.0.140.0050.00316.80
8.0.130.0000.00513.46
8.0.120.0040.00416.89
8.0.110.0000.00816.86
8.0.100.0070.00016.96
8.0.90.0040.00416.91
8.0.80.0090.00616.91
8.0.70.0040.00416.98
8.0.60.0040.00416.99
8.0.50.0080.00016.92
8.0.30.0100.01317.14
8.0.20.0070.01217.40
8.0.10.0000.00716.97
8.0.00.0120.00916.91
7.4.330.0000.00515.09
7.4.320.0030.00316.46
7.4.300.0000.00716.59
7.4.290.0070.00016.50
7.4.280.0060.00316.64
7.4.270.0030.00616.60
7.4.260.0000.00716.49
7.4.250.0050.00316.54
7.4.240.0030.00316.52
7.4.230.0070.00016.31
7.4.220.0060.01916.54
7.4.210.0070.00916.61
7.4.200.0030.00316.67
7.4.190.0070.00016.68
7.4.160.0080.00816.80
7.4.150.0060.01317.40
7.4.140.0120.00617.86
7.4.130.0070.01116.61
7.4.120.0120.00616.47
7.4.110.0100.01016.70
7.4.100.0080.01116.46
7.4.90.0140.00316.61
7.4.80.0060.01216.60
7.4.70.0100.00716.57
7.4.60.0070.01016.46
7.4.50.0030.00516.35
7.4.40.0070.00722.77
7.4.30.0090.00616.63
7.4.10.0080.01114.98
7.4.00.0080.00914.99
7.3.330.0000.00513.29
7.3.320.0000.00513.50
7.3.310.0040.00416.46
7.3.300.0080.00016.38
7.3.290.0070.01216.36
7.3.280.0070.00916.41
7.3.270.0130.00617.40
7.3.260.0120.00616.47
7.3.250.0060.01216.65
7.3.240.0110.00316.56
7.3.230.0040.01216.39
7.3.210.0090.00916.39
7.3.200.0110.00619.39
7.3.190.0090.01216.38
7.3.180.0160.00016.55
7.3.170.0070.01016.55
7.3.160.0130.00316.54
7.3.130.0060.01014.95
7.3.120.0080.00815.00
7.3.110.0130.00614.98
7.3.100.0070.00914.92
7.3.90.0050.00914.91
7.3.80.0090.00514.82
7.3.70.0020.01314.80
7.3.60.0080.00614.93
7.3.50.0020.01414.88
7.3.40.0070.00514.93
7.3.30.0040.00815.00
7.3.20.0070.00616.74
7.3.10.0060.00716.71
7.3.00.0060.00616.63
7.2.330.0100.00716.51
7.2.320.0060.01216.82
7.2.310.0100.01316.52
7.2.300.0090.00916.80
7.2.290.0130.00316.63
7.2.260.0060.01215.17
7.2.250.0060.01115.09
7.2.240.0090.00715.26
7.2.230.0110.00615.20
7.2.220.0050.01314.97
7.2.210.0070.00515.18
7.2.200.0100.00514.95
7.2.190.0080.00814.98
7.2.180.0030.01115.03
7.2.170.0070.00715.04
7.2.160.0020.01214.99
7.2.150.0030.00817.08
7.2.140.0120.00316.97
7.2.130.0050.00816.88
7.2.120.0020.01116.95
7.2.110.0080.00716.83
7.2.100.0070.00616.74
7.2.90.0100.00417.00
7.2.80.0060.00916.87
7.2.70.0100.00916.77
7.2.60.0060.00716.86
7.2.50.0080.01016.86
7.2.40.0080.00917.04
7.2.30.0090.00616.91
7.2.20.0040.00916.88
7.2.10.0090.00617.03
7.2.00.0110.00617.49
7.1.330.0030.01015.95
7.1.320.0060.00915.94
7.1.310.0110.00116.10
7.1.300.0030.01215.83
7.1.290.0020.00915.73
7.1.280.0000.01015.84
7.1.270.0020.00915.73
7.1.260.0070.00615.95
7.1.250.0040.00915.79
7.1.240.0060.00615.71
7.1.230.0050.00915.85
7.1.220.0050.01015.97
7.1.210.0080.00415.79
7.1.200.0070.00715.84
7.1.190.0070.01015.63
7.1.180.0010.01215.80
7.1.170.0110.00315.80
7.1.160.0090.00715.86
7.1.150.0050.01115.83
7.1.140.0020.01215.79
7.1.130.0050.00815.96
7.1.120.0080.00715.73
7.1.110.0050.00815.89
7.1.100.0030.01116.70
7.1.90.0050.00715.91
7.1.80.0020.01415.76
7.1.70.0080.00616.21
7.1.60.0090.00816.87
7.1.50.0070.00916.36
7.1.40.0100.00615.94
7.1.30.0100.00515.88
7.1.20.0110.00415.90
7.1.10.0020.01015.72
7.1.00.0020.03218.06
7.0.330.0040.00615.41
7.0.320.0060.00515.43
7.0.310.0060.00915.33
7.0.300.0050.01015.47
7.0.290.0060.00915.47
7.0.280.0040.00615.41
7.0.270.0030.00615.28
7.0.260.0020.01115.26
7.0.250.0050.00915.43
7.0.240.0050.00915.48
7.0.230.0050.00815.52
7.0.220.0060.00815.61
7.0.210.0070.00715.36
7.0.200.0070.00715.82
7.0.190.0020.01215.35
7.0.180.0070.00915.32
7.0.170.0050.00715.54
7.0.160.0040.01015.50
7.0.150.0040.00815.40
7.0.140.0040.03017.61
7.0.130.0020.01315.48
7.0.120.0080.00515.44
7.0.110.0020.01015.30
7.0.100.0050.01916.89
7.0.90.0080.03216.90
7.0.80.0120.02716.83
7.0.70.0060.02317.00
7.0.60.0060.03216.94
7.0.50.0060.02217.02
7.0.40.0040.02215.85
7.0.30.0070.02215.86
7.0.20.0050.02515.91
7.0.10.0040.03415.83
7.0.00.0030.03715.89
5.6.400.0060.00814.31
5.6.390.0040.00914.57
5.6.380.0080.00614.30
5.6.370.0040.01214.63
5.6.360.0090.00614.73
5.6.350.0080.00614.52
5.6.340.0100.00314.58
5.6.330.0050.00814.53
5.6.320.0080.00414.49
5.6.310.0060.00614.43
5.6.300.0020.01214.53
5.6.290.0020.00914.30
5.6.280.0060.03116.69
5.6.270.0020.01214.44
5.6.260.0010.00814.41
5.6.250.0080.03016.52
5.6.240.0070.02416.53
5.6.230.0080.02916.36
5.6.220.0060.03416.53
5.6.210.0060.02616.45
5.6.200.0080.03016.76
5.6.190.0080.03016.64
5.6.180.0070.02016.71
5.6.170.0070.03516.65
5.6.160.0100.02916.62
5.6.150.0050.02216.71
5.6.140.0060.03416.70
5.6.130.0050.03616.59
5.6.120.0050.03216.76
5.6.110.0050.03516.64
5.6.100.0080.02916.62
5.6.90.0110.02216.64
5.6.80.0040.03416.19
5.6.70.0040.03516.42
5.6.60.0100.02816.31
5.6.50.0040.03116.43
5.6.40.0080.02316.38
5.6.30.0050.03316.33
5.6.20.0020.03116.24
5.6.10.0090.02716.36
5.6.00.0050.03316.29
5.5.380.0090.02916.38
5.5.370.0030.03316.39
5.5.360.0100.02916.47
5.5.350.0110.03016.19
5.5.340.0070.01916.49
5.5.330.0050.02316.56
5.5.320.0070.02116.64
5.5.310.0080.03116.58
5.5.300.0050.03216.55
5.5.290.0070.01516.56
5.5.280.0090.03316.49
5.5.270.0100.03016.46
5.5.260.0060.02016.41
5.5.250.0090.01916.33
5.5.240.0080.03416.26
5.5.230.0040.03516.15
5.5.220.0060.03316.22
5.5.210.0080.03216.09
5.5.200.0060.02616.33
5.5.190.0060.02516.28
5.5.180.0020.02416.36
5.5.170.0080.00714.29
5.5.160.0050.02516.23
5.5.150.0040.03116.41
5.5.140.0080.02516.34
5.5.130.0110.02416.08
5.5.120.0060.03016.20
5.5.110.0100.02816.26
5.5.100.0040.03816.22
5.5.90.0080.03016.18
5.5.80.0050.03416.18
5.5.70.0070.01916.01
5.5.60.0070.02816.30
5.5.50.0090.01716.23
5.5.40.0040.02616.33
5.5.30.0070.03316.24
5.5.20.0090.02816.24
5.5.10.0070.01616.16
5.5.00.0050.02016.13
5.4.450.0070.02914.89
5.4.440.0040.02414.99
5.4.430.0060.03414.92
5.4.420.0060.03214.91
5.4.410.0050.03014.84
5.4.400.0090.02414.70
5.4.390.0050.02814.69
5.4.380.0020.02814.69
5.4.370.0070.02914.81
5.4.360.0070.02914.90
5.4.350.0100.01614.67
5.4.340.0050.02414.82
5.4.330.0030.00512.64
5.4.320.0090.02814.75
5.4.310.0030.01914.77
5.4.300.0030.03714.84
5.4.290.0020.03214.75
5.4.280.0070.02814.72
5.4.270.0020.03114.74
5.4.260.0060.02514.72
5.4.250.0040.03214.74
5.4.240.0050.02914.86
5.4.230.0080.02614.80
5.4.220.0070.02814.81
5.4.210.0040.03314.70
5.4.200.0030.01814.86
5.4.190.0060.02614.74
5.4.180.0020.01914.69
5.4.170.0040.03114.78
5.4.160.0070.02714.77
5.4.150.0090.02714.70
5.4.140.0070.02013.92
5.4.130.0030.01713.88
5.4.120.0030.02913.85
5.4.110.0010.01913.88
5.4.100.0050.02513.89
5.4.90.0030.01613.81
5.4.80.0060.01613.91
5.4.70.0070.02013.86
5.4.60.0090.02113.77
5.4.50.0030.03013.90
5.4.40.0040.01713.82
5.4.30.0040.01813.94
5.4.20.0080.03013.88
5.4.10.0070.02713.97
5.4.00.0090.01213.65
5.3.290.0050.02913.08
5.3.280.0050.01812.98
5.3.270.0040.02813.07
5.3.260.0060.02813.00
5.3.250.0090.01512.98
5.3.240.0030.02812.98
5.3.230.0080.02413.05
5.3.220.0010.02812.96
5.3.210.0020.01612.98
5.3.200.0030.03013.04
5.3.190.0060.01813.06
5.3.180.0040.01713.00
5.3.170.0010.01912.98
5.3.160.0030.01713.09
5.3.150.0040.03113.06
5.3.140.0070.01813.07
5.3.130.0070.02713.01
5.3.120.0070.01613.07
5.3.110.0060.02412.99
5.3.100.0040.01512.88
5.3.90.0040.02612.85
5.3.80.0050.02112.83
5.3.70.0020.01812.80
5.3.60.0020.02412.86
5.3.50.0030.02712.77
5.3.40.0040.02112.81
5.3.30.0060.02412.76
5.3.20.0050.02712.71
5.3.10.0040.02212.67
5.3.00.0040.02712.66
5.2.170.0030.03312.16
5.2.160.0070.06312.16
5.2.150.0030.06312.16
5.2.140.0000.06312.16
5.2.130.0100.05012.16
5.2.120.0070.05312.16
5.2.110.0100.02712.16
5.2.100.0100.05012.16
5.2.90.0100.05312.16
5.2.80.0000.06712.16
5.2.70.0070.05712.16
5.2.60.0070.04712.16
5.2.50.0030.06012.16
5.2.40.0070.05012.16
5.2.30.0070.06012.16
5.2.20.0100.05012.16
5.2.10.0030.03012.16
5.2.00.0030.07012.16
5.1.60.0000.05712.16
5.1.50.0130.04712.16
5.1.40.0000.03012.16
5.1.30.0070.05312.16
5.1.20.0000.04012.16
5.1.10.0070.04012.16
5.1.00.0070.02312.16
5.0.50.0030.03712.16
5.0.40.0000.02312.16
5.0.30.0030.06312.16
5.0.20.0030.03712.16
5.0.10.0100.03712.16
5.0.00.0000.06012.16
4.4.90.0030.01312.16
4.4.80.0000.02012.16
4.4.70.0000.04012.16
4.4.60.0000.03312.16
4.4.50.0070.02712.16
4.4.40.0030.04312.16
4.4.30.0030.03012.16
4.4.20.0070.03312.16
4.4.10.0000.02012.16
4.4.00.0000.03312.16
4.3.110.0030.01312.16
4.3.100.0070.01312.16
4.3.90.0100.03012.16
4.3.80.0070.04312.16
4.3.70.0000.02012.16
4.3.60.0070.03012.16
4.3.50.0000.01712.16
4.3.40.0000.03312.16
4.3.30.0000.03712.16
4.3.20.0030.03012.16
4.3.10.0000.03712.16
4.3.00.0100.00712.16

preferences:
32.86 ms | 401 KiB | 5 Q