3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safeEval($arg,$badwords=array()) { if(stripos($arg,$badwords) === true) //$arg = explode("''",$arg); //$bardwords = array($badwords); //if(in_array($badwords,$arg)) { str_ireplace($badwords,"''",$arg); //$arg = $arg; eval($arg); //return; } else eval($arg); } $string = "echo 'Hello drop Kyle';"; $find = array("update","drop"); safeEval($string,$find);

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.0030.01218.66
8.3.30.0080.00818.76
8.3.20.0040.00418.90
8.3.10.0100.00018.52
8.3.00.0090.00019.38
8.2.170.0120.00322.96
8.2.160.0110.00418.82
8.2.150.0000.00924.18
8.2.140.0180.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00020.93
8.2.110.0070.00320.77
8.2.100.0110.00019.45
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00717.93
8.2.50.0000.00817.93
8.2.40.0060.00319.48
8.2.30.0000.00917.62
8.2.20.0030.00617.58
8.2.10.0030.00617.84
8.2.00.0090.00017.73
8.1.270.0080.00323.99
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0140.00720.94
8.1.230.0090.00317.77
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0030.00617.00
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0040.00419.05
8.1.150.0040.00418.45
8.1.140.0040.00417.52
8.1.130.0040.00419.16
8.1.120.0070.00017.41
8.1.110.0000.00717.29
8.1.100.0040.00417.31
8.1.90.0000.00717.38
8.1.80.0030.00317.45
8.1.70.0050.00217.29
8.1.60.0050.00317.54
8.1.50.0040.00417.47
8.1.40.0060.00317.39
8.1.30.0080.00017.64
8.1.20.0040.00417.56
8.1.10.0040.00417.50
8.1.00.0040.00417.54
8.0.300.0070.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.48
8.0.270.0030.00317.08
8.0.260.0030.00316.89
8.0.250.0050.00216.98
8.0.240.0000.00816.87
8.0.230.0030.00316.94
8.0.220.0030.00316.87
8.0.210.0070.00016.88
8.0.200.0040.00416.95
8.0.190.0070.00016.91
8.0.180.0050.00516.87
8.0.170.0030.00716.77
8.0.160.0040.00416.82
8.0.150.0030.00516.86
8.0.140.0000.00816.77
8.0.130.0050.00013.36
8.0.120.0030.00516.91
8.0.110.0030.00316.79
8.0.100.0040.00416.73
8.0.90.0000.00716.83
8.0.80.0120.01016.95
8.0.70.0000.00716.70
8.0.60.0090.00016.75
8.0.50.0030.00517.00
8.0.30.0120.00816.81
8.0.20.0070.01117.32
8.0.10.0040.00417.08
8.0.00.0090.00916.81
7.4.330.0000.00512.88
7.4.320.0030.00316.41
7.4.300.0030.00316.50
7.4.290.0070.00016.61
7.4.280.0040.00416.58
7.4.270.0040.00416.37
7.4.260.0030.00313.28
7.4.250.0030.00516.51
7.4.240.0000.00716.53
7.4.230.0060.00316.61
7.4.220.0120.00916.36
7.4.210.0100.00616.64
7.4.200.0070.00016.53
7.4.190.0000.00716.54
7.4.160.0100.01016.49
7.4.150.0170.00016.63
7.4.140.0070.01116.43
7.4.130.0060.01216.53
7.4.120.0040.01216.53
7.4.110.0060.01616.71
7.4.100.0060.01016.37
7.4.90.0110.00716.44
7.4.80.0190.00619.39
7.4.70.0120.00616.66
7.4.60.0090.01116.51
7.4.50.0030.00316.50
7.4.40.0140.00016.38
7.4.30.0130.00316.63
7.4.00.0100.00714.98
7.3.330.0040.00413.18
7.3.320.0000.00813.07
7.3.310.0050.00216.28
7.3.300.0060.00016.30
7.3.290.0070.00816.28
7.3.280.0000.01416.29
7.3.270.0090.01016.48
7.3.260.0150.00916.27
7.3.250.0070.01016.48
7.3.240.0070.01416.50
7.3.230.0070.01016.47
7.3.210.0100.00716.48
7.3.200.0140.00516.38
7.3.190.0090.00916.48
7.3.180.0080.00816.23
7.3.170.0040.01316.39
7.3.160.0090.00616.23
7.3.120.0060.01014.86
7.3.10.0030.01016.69
7.3.00.0090.00916.39
7.2.330.0090.00916.46
7.2.320.0200.00416.37
7.2.310.0170.00516.77
7.2.300.0100.00716.37
7.2.290.0100.00616.84
7.2.130.0000.00917.00
7.2.120.0040.00716.68
7.2.110.0090.00616.95
7.2.100.0060.00316.87
7.2.90.0000.01216.90
7.2.80.0070.00716.55
7.2.70.0030.01016.82
7.2.60.0030.00617.01
7.2.50.0060.00916.93
7.2.40.0040.00716.98
7.2.30.0040.01116.99
7.2.20.0150.00016.91
7.2.10.0070.00317.04
7.2.00.0070.00918.24
7.1.250.0000.01515.68
7.1.100.0220.01317.24
7.1.70.0070.00717.29
7.1.60.0140.01019.30
7.1.50.0000.02216.80
7.1.00.0070.06722.42
7.0.200.0040.01116.68
7.0.140.0030.07322.18
7.0.120.0030.06722.04
7.0.60.0130.07020.00
7.0.50.0030.04017.88
7.0.40.0130.03720.02
7.0.30.0570.06720.16
7.0.20.0170.04020.22
7.0.10.0030.04320.23
7.0.00.0030.07020.24
5.6.280.0000.07720.91
5.6.210.0100.07720.48
5.6.200.0100.03318.29
5.6.190.0070.04320.57
5.6.180.0300.06320.64
5.6.170.0230.03320.47
5.6.160.0070.04720.54
5.6.150.0130.05018.30
5.6.140.0130.07318.19
5.6.130.0130.04318.28
5.6.120.0030.04720.99
5.6.110.0170.07721.04
5.6.100.0100.08020.89
5.6.90.0100.06021.04
5.6.80.0100.06720.49
5.6.70.4500.03720.39
5.5.350.0330.06320.33
5.5.340.0170.07018.09
5.5.330.0070.07720.47
5.5.320.0170.04320.27
5.5.310.0270.06020.23
5.5.300.0100.04017.99
5.5.290.0000.05717.95
5.5.280.0100.04020.85
5.5.270.0030.05320.77
5.5.260.0130.06020.97
5.5.250.0070.07320.75
5.5.240.4200.04320.19
5.4.450.0030.04019.52
5.4.440.0100.04019.34
5.4.430.0070.03719.16
5.4.420.0030.03719.21
5.4.410.0170.03019.42
5.4.400.0030.03718.97
5.4.390.0070.03319.15
5.4.380.0030.03718.85
5.4.370.0100.03018.85
5.4.360.0030.03718.98
5.4.350.0070.03719.15
5.4.340.0000.04018.87
5.4.320.0100.03719.12
5.4.310.0000.04019.15
5.4.300.0030.03718.89
5.4.290.0000.04018.87
5.4.280.0030.03719.05
5.4.270.0070.03318.85
5.4.260.0030.03719.20
5.4.250.0130.07019.24
5.4.240.0070.03719.13
5.4.230.0170.06319.14
5.4.220.0070.07019.14
5.4.210.0030.04019.14
5.4.200.0030.06719.23
5.4.190.0000.04318.86
5.4.180.0130.03319.13
5.4.170.0100.07319.13
5.4.160.0100.05719.13
5.4.150.0070.07719.23
5.4.140.0070.08016.42
5.4.130.0070.03716.35
5.4.120.0000.07716.32
5.4.110.0030.06016.44
5.4.100.0130.06316.39
5.4.90.0000.04716.43
5.4.80.0030.06716.46
5.4.70.0030.07316.38
5.4.60.0000.04016.65
5.4.50.0070.04016.27
5.4.40.0130.05716.27
5.4.30.0100.06316.27
5.4.20.0100.03016.27
5.4.10.0100.07016.39
5.4.00.0030.05015.95
5.3.290.0070.03314.66
5.3.280.0070.04014.62
5.3.270.0200.03714.68
5.3.260.0070.08014.52
5.3.250.0070.05314.61
5.3.240.0170.05314.62
5.3.230.0070.07314.65
5.3.220.0100.06014.60
5.3.210.0000.06714.60
5.3.200.0100.04714.62
5.3.190.0070.04314.59
5.3.180.0030.08014.48
5.3.170.0100.07014.64
5.3.160.0030.04314.57
5.3.150.0070.05314.60
5.3.140.0070.06014.55
5.3.130.0030.06014.70
5.3.120.0030.05014.71
5.3.110.0030.03714.71
5.3.100.0070.03714.09
5.3.90.0030.07714.07
5.3.80.0070.04314.17
5.3.70.0000.07714.02
5.3.60.0070.05314.03
5.3.50.0070.06713.96
5.3.40.0100.06313.90
5.3.30.0070.04313.90
5.3.20.0030.04313.69
5.3.10.0070.07013.70
5.3.00.0130.06313.69
5.2.170.0100.04311.18
5.2.160.0000.06711.12
5.2.150.0070.06311.22
5.2.140.0100.06011.16
5.2.130.0030.06311.14
5.2.120.0030.03711.26
5.2.110.0030.06311.11
5.2.100.0000.07011.16
5.2.90.0100.06011.18
5.2.80.0100.05711.09
5.2.70.0070.04011.13
5.2.60.0070.06010.97
5.2.50.0030.03710.94
5.2.40.0100.05311.00
5.2.30.0070.06310.92
5.2.20.0030.03310.88
5.2.10.0130.04710.88
5.2.00.0000.03310.77
5.1.60.0070.05310.14
5.1.50.0130.0479.95
5.1.40.0000.0509.95
5.1.30.0070.05010.33
5.1.20.0100.04010.41
5.1.10.0000.03010.11
5.1.00.0030.0239.98
5.0.50.0070.0438.61
5.0.40.0070.0338.48
5.0.30.0000.0678.38
5.0.20.0030.0378.27
5.0.10.0030.0438.13
5.0.00.0070.0578.08
4.4.90.0000.0208.01
4.4.80.0000.0338.01
4.4.70.0000.0278.01
4.4.60.0070.0238.01
4.4.50.0070.0138.01
4.4.40.0030.0508.01
4.4.30.0000.0208.01
4.4.20.0030.0338.01
4.4.10.0000.0208.01
4.4.00.0070.0538.01
4.3.110.0000.0238.01
4.3.100.0000.0308.01
4.3.90.0030.0378.01
4.3.80.0000.0538.01
4.3.70.0030.0338.01
4.3.60.0030.0308.01
4.3.50.0000.0308.01
4.3.40.0000.0538.01
4.3.30.0030.0238.01
4.3.20.0030.0208.01
4.3.10.0000.0378.01
4.3.00.0030.0178.01

preferences:
44.79 ms | 400 KiB | 5 Q