3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safeEval($arg,$badwords) { if(strpos($arg,$badwords) === true) { echo "it has been found"; return; } else return eval($arg); } $string = "echo 'Hello Kyle';"; $find = "kyle"; 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.0120.00918.90
8.3.30.0070.00718.84
8.3.20.0040.00418.73
8.3.10.0000.00821.09
8.3.00.0040.00421.73
8.2.170.0090.00622.96
8.2.160.0100.00320.52
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0020.00521.09
8.2.110.0060.00321.18
8.2.100.0080.00417.91
8.2.90.0000.00919.08
8.2.80.0050.00317.97
8.2.70.0060.00317.61
8.2.60.0030.00617.80
8.2.50.0050.00318.10
8.2.40.0080.00018.03
8.2.30.0090.00319.49
8.2.20.0050.00317.66
8.2.10.0060.00317.68
8.2.00.0040.00417.72
8.1.270.0080.00023.99
8.1.260.0130.00626.35
8.1.250.0090.00328.09
8.1.240.0030.00619.43
8.1.230.0040.00817.76
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.36
8.1.180.0000.00918.10
8.1.170.0040.00418.50
8.1.160.0040.00418.88
8.1.150.0090.00018.73
8.1.140.0040.00417.49
8.1.130.0030.00517.82
8.1.120.0080.00017.36
8.1.110.0040.00417.42
8.1.100.0080.00017.31
8.1.90.0050.00217.45
8.1.80.0000.00717.43
8.1.70.0030.00317.48
8.1.60.0080.00017.53
8.1.50.0000.00717.45
8.1.40.0000.00817.45
8.1.30.0040.00417.47
8.1.20.0040.00417.69
8.1.10.0000.00717.49
8.1.00.0000.00817.45
8.0.300.0000.00918.77
8.0.290.0090.00016.63
8.0.280.0080.00018.45
8.0.270.0070.00317.27
8.0.260.0000.00716.74
8.0.250.0000.00816.95
8.0.240.0000.01116.97
8.0.230.0030.00316.82
8.0.220.0000.00716.90
8.0.210.0050.00516.91
8.0.200.0000.00616.95
8.0.190.0000.00716.97
8.0.180.0040.00416.90
8.0.170.0040.00416.88
8.0.160.0030.00516.91
8.0.150.0050.00216.88
8.0.140.0000.01216.90
8.0.130.0030.00313.25
8.0.120.0040.00416.82
8.0.110.0030.00516.95
8.0.100.0040.00416.80
8.0.90.0070.00016.69
8.0.80.0070.01416.80
8.0.70.0000.00716.88
8.0.60.0070.00016.84
8.0.50.0000.00716.75
8.0.30.0150.00317.14
8.0.20.0120.01717.40
8.0.10.0020.00517.05
8.0.00.0070.01016.64
7.4.330.0050.00016.74
7.4.320.0030.00316.52
7.4.300.0000.00716.50
7.4.290.0000.00816.54
7.4.280.0050.00216.48
7.4.270.0030.00316.63
7.4.260.0000.00613.25
7.4.250.0050.00216.60
7.4.240.0040.00416.43
7.4.230.0000.00716.64
7.4.220.0030.01416.40
7.4.210.0070.01116.60
7.4.200.0030.00316.48
7.4.190.0000.00816.55
7.4.160.0080.00816.25
7.4.150.0140.01117.40
7.4.140.0100.00717.86
7.4.130.0050.01216.49
7.4.120.0070.01016.49
7.4.110.0090.00916.29
7.4.100.0140.00416.54
7.4.90.0030.01416.43
7.4.80.0100.00719.39
7.4.70.0090.00916.36
7.4.60.0200.01916.29
7.4.50.0000.00816.16
7.4.40.0030.01322.77
7.4.30.0060.01216.60
7.4.00.0060.00914.72
7.3.330.0000.00513.14
7.3.320.0000.00513.24
7.3.310.0000.00716.24
7.3.300.0070.00016.09
7.3.290.0100.01016.29
7.3.280.0080.00916.26
7.3.270.0140.00317.40
7.3.260.0090.00918.24
7.3.250.0070.01016.27
7.3.240.0160.00616.34
7.3.230.0130.00316.39
7.3.210.0100.00716.48
7.3.200.0040.01819.39
7.3.190.0090.01216.43
7.3.180.0120.00916.29
7.3.170.0080.00816.50
7.3.160.0120.00416.32
7.3.120.0150.00014.92
7.2.330.0090.00916.34
7.2.320.0130.01016.64
7.2.310.0040.01516.41
7.2.300.0090.00916.71
7.2.290.0080.00816.47
7.2.60.0060.00916.89
7.2.00.0030.01219.27
7.1.200.0060.00615.71
7.1.100.0060.00918.19
7.1.70.0050.00316.95
7.1.60.0040.01117.09
7.1.50.0000.02216.95
7.1.00.0000.05722.54
7.0.200.0100.01016.82
7.0.140.0100.06321.99
7.0.80.0270.06720.02
7.0.70.0070.04719.89
7.0.60.0670.07719.88
7.0.50.0430.04720.28
7.0.40.0000.09020.11
7.0.30.0170.07020.02
7.0.20.0130.07720.05
7.0.10.0030.08020.09
7.0.00.0130.03719.99
5.6.280.0000.07721.04
5.6.230.0130.07720.48
5.6.220.0170.07320.68
5.6.210.0170.06720.47
5.6.200.0200.08020.96
5.6.190.0070.06321.12
5.6.180.0070.07320.95
5.6.170.0130.03721.08
5.6.160.0070.07321.02
5.6.150.0100.07320.96
5.6.140.0130.04021.16
5.6.130.0130.07321.06
5.6.120.0070.08321.04
5.6.110.0070.05020.98
5.6.100.0100.05321.01
5.6.90.0070.09021.00
5.6.80.0070.08320.49
5.6.70.0130.06720.41
5.6.60.0030.08720.38
5.6.50.0100.08020.43
5.6.40.0070.08020.41
5.6.30.0100.05020.50
5.6.20.0000.05720.44
5.6.10.0100.07320.32
5.6.00.0070.06020.40
5.5.370.0000.09320.46
5.5.360.0100.07720.34
5.5.350.0070.05320.45
5.5.340.0070.08320.84
5.5.330.0130.08020.91
5.5.320.0030.08720.75
5.5.310.0030.08020.93
5.5.300.0030.06320.91
5.5.290.0200.06720.77
5.5.280.0100.08020.77
5.5.270.0100.04320.91
5.5.260.0070.06720.86
5.5.250.0100.06720.62
5.5.240.0070.06320.03
5.5.230.0130.07320.30
5.5.220.0100.07720.21
5.5.210.0070.07720.27
5.5.200.0000.06720.16
5.5.190.0070.07020.27
5.5.180.0100.07720.14
5.5.160.0100.07320.15
5.5.150.0100.08020.12
5.5.140.0100.07320.23
5.5.130.0070.03720.13
5.5.120.0070.08020.25
5.5.110.0070.07320.16
5.5.100.0170.06720.12
5.5.90.0030.07720.11
5.5.80.0070.07720.16
5.5.70.0100.07320.00
5.5.60.0000.06720.05
5.5.50.0070.07720.09
5.5.40.0170.06720.10
5.5.30.0070.08020.00
5.5.20.0100.06020.06
5.5.10.0000.04320.04
5.5.00.0130.03019.96
5.4.450.0130.07719.51
5.4.440.0030.08319.41
5.4.430.0070.06019.36
5.4.420.0070.06319.52
5.4.410.0030.04019.44
5.4.400.0070.07719.05
5.4.390.0170.06319.20
5.4.380.0100.07019.09
5.4.370.0100.07319.05
5.4.360.0070.05719.12
5.4.350.0070.05319.04
5.4.340.0100.07319.12
5.4.320.0170.06319.18
5.4.310.0100.07018.99
5.4.300.0200.06719.14
5.4.290.0030.04719.12
5.4.280.0070.07319.11
5.4.270.0130.07319.05
5.4.260.0070.07319.05
5.4.250.0100.07319.02
5.4.240.0130.06018.84
5.4.230.0170.06718.84
5.4.220.0000.08319.04
5.4.210.0030.08019.13
5.4.200.0070.05019.11
5.4.190.0100.03719.21
5.4.180.0030.04719.05
5.4.170.0000.04718.84
5.4.160.0000.04018.89
5.4.150.0130.06019.10
5.4.140.0030.04016.19
5.4.130.0000.04016.34
5.4.120.0030.03316.42
5.4.110.0100.03316.47
5.4.100.0100.03016.46
5.4.90.0070.03316.38
5.4.80.0000.04316.34
5.4.70.0070.03716.37
5.4.60.0030.04016.44
5.4.50.0000.04316.37
5.4.40.0100.05016.30
5.4.30.0000.04016.36
5.4.20.0100.03316.40
5.4.10.0000.06716.53
5.4.00.0000.04015.85
5.3.290.0030.07714.67
5.3.280.0030.07314.52
5.3.270.0030.04314.66
5.3.260.0030.03714.73
5.3.250.0030.03714.67
5.3.240.0100.03314.64
5.3.230.0000.05014.57
5.3.220.0070.03714.49
5.3.210.0100.03714.60
5.3.200.0030.07014.60
5.3.190.0030.07014.59
5.3.180.0030.03714.51
5.3.170.0100.05714.66
5.3.160.0070.05014.54
5.3.150.0000.04014.52
5.3.140.0030.05014.50
5.3.130.0070.06714.54
5.3.120.0100.03714.55
5.3.110.0070.05714.57
5.3.100.0030.03714.14
5.3.90.0000.04014.13
5.3.80.0070.03714.13
5.3.70.0000.04013.92
5.3.60.0070.03314.02
5.3.50.0030.03713.87
5.3.40.0030.03713.96
5.3.30.0070.05313.82
5.3.20.0000.05013.64
5.3.10.0100.03013.72
5.3.00.0000.05713.54
5.2.170.0030.03712.00
5.2.160.0000.03012.00
5.2.150.0000.03012.00
5.2.140.0000.05712.00
5.2.130.0000.03012.00
5.2.120.0070.02012.00
5.2.110.0070.02712.00
5.2.100.0000.03012.00
5.2.90.0070.05012.00
5.2.80.0000.04712.00
5.2.70.0000.03312.00
5.2.60.0070.02312.00
5.2.50.0030.02312.00
5.2.40.0000.02712.00
5.2.30.0070.03712.00
5.2.20.0000.03712.00
5.2.10.0030.05312.00
5.2.00.0030.02712.00
5.1.60.0030.02312.00
5.1.50.0000.02312.00
5.1.40.0030.02312.00
5.1.30.0000.02312.00
5.1.20.0000.02312.00
5.1.10.0000.02712.00
5.1.00.0000.02312.00
5.0.50.0000.02012.00
5.0.40.0000.01712.00
5.0.30.0030.03012.00
5.0.20.0000.02312.00
5.0.10.0000.02012.00
5.0.00.0030.03012.00
4.4.90.0030.01312.00
4.4.80.0070.01712.00
4.4.70.0030.01312.00
4.4.60.0030.01312.00
4.4.50.0030.01012.00
4.4.40.0000.04012.00
4.4.30.0000.01712.00
4.4.20.0000.02712.00
4.4.10.0000.01712.00
4.4.00.0000.04012.00
4.3.110.0000.01712.00
4.3.100.0000.02312.00
4.3.90.0000.01312.00
4.3.80.0000.02312.00
4.3.70.0000.01312.00
4.3.60.0000.01712.00
4.3.50.0000.02012.00
4.3.40.0000.02712.00
4.3.30.0030.01712.00
4.3.20.0030.01712.00
4.3.10.0000.03712.00
4.3.00.0030.02712.00

preferences:
46.16 ms | 400 KiB | 5 Q