3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "shot this dude for being a mother"; $bads = array('truck', 'shot'); foreach($bads as $bad) { $place = strpos($string, $bad); if (!empty($place)) { echo 'Bad word'; exit; } else { echo "Good"; } }

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.5.10.0110.00816.89
8.5.00.0130.00819.78
8.4.150.0030.00014.05
8.4.140.0140.01017.46
8.4.130.0090.01117.78
8.4.120.0100.00920.61
8.4.110.0140.00722.38
8.4.100.0130.00817.66
8.4.90.0090.01117.68
8.4.80.0050.00417.79
8.4.70.0090.01119.62
8.4.60.0060.00318.96
8.4.50.0120.00917.64
8.4.40.0130.00617.50
8.4.30.0090.00620.70
8.4.20.0150.00419.73
8.4.10.0080.00017.40
8.3.280.0100.01318.34
8.3.270.0120.00716.54
8.3.260.0040.00416.60
8.3.250.0140.00518.87
8.3.240.0120.00617.10
8.3.230.0110.00816.64
8.3.220.0040.00318.45
8.3.210.0130.00716.57
8.3.200.0050.00416.59
8.3.190.0120.00717.10
8.3.180.0030.00618.34
8.3.170.0030.00616.71
8.3.160.0130.00616.36
8.3.150.0120.00617.04
8.3.140.0190.00017.12
8.3.130.0080.00018.54
8.3.120.0040.01420.83
8.3.110.0040.00416.57
8.3.100.0030.00616.78
8.3.90.0130.00326.77
8.3.80.0070.00319.36
8.3.70.0100.00718.43
8.3.60.0140.00716.75
8.3.50.0110.00824.49
8.3.40.0070.01021.82
8.3.30.0090.00618.72
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.290.0040.00418.88
8.2.280.0100.00918.12
8.2.270.0110.00716.63
8.2.260.0130.00718.63
8.2.250.0000.00816.36
8.2.240.0040.01116.92
8.2.230.0040.00420.94
8.2.220.0120.00324.06
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0070.01516.63
8.2.180.0150.00025.92
8.2.170.0120.00318.83
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.66
8.2.110.0150.00422.20
8.2.100.0040.00817.72
8.2.90.0040.00417.91
8.2.80.0040.00418.99
8.2.70.0040.00418.04
8.2.60.0040.00418.03
8.2.50.0050.00318.10
8.2.40.0000.00821.24
8.2.30.0070.00019.12
8.2.20.0050.00218.12
8.2.10.0050.00519.23
8.2.00.0040.00419.36
8.1.330.0110.00821.78
8.1.320.0150.00515.96
8.1.310.0070.01016.69
8.1.300.0070.01018.35
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0080.00024.01
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0040.00722.80
8.1.220.0000.00917.75
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0000.00719.02
8.1.150.0040.00418.99
8.1.140.0070.00018.95
8.1.130.0000.00820.16
8.1.120.0080.00017.48
8.1.110.0040.00417.46
8.1.100.0090.00017.45
8.1.90.0000.00717.34
8.1.80.0030.00517.41
8.1.70.0000.00817.35
8.1.60.0090.00317.55
8.1.50.0030.00517.54
8.1.40.0050.00317.53
8.1.30.0050.00217.61
8.1.20.0040.00417.56
8.1.10.0030.00517.52
8.1.00.0000.00717.44
8.0.300.0040.00420.12
8.0.290.0040.00416.75
8.0.280.0040.00418.40
8.0.270.0030.00316.86
8.0.260.0000.00618.48
8.0.250.0000.00716.95
8.0.240.0070.00016.95
8.0.230.0070.00016.91
8.0.220.0070.00016.92
8.0.210.0070.00016.85
8.0.200.0000.00616.98
8.0.190.0000.00816.96
8.0.180.0040.00416.89
8.0.170.0090.00016.92
8.0.160.0000.00816.87
8.0.150.0000.00816.75
8.0.140.0040.00416.68
8.0.130.0000.00613.29
8.0.120.0040.00416.76
8.0.110.0040.00416.79
8.0.100.0030.00516.83
8.0.90.0070.00016.71
8.0.80.0050.01416.84
8.0.70.0040.00416.89
8.0.60.0030.00316.80
8.0.50.0000.00716.77
8.0.30.0070.01017.35
8.0.20.0040.01516.97
8.0.10.0050.00316.86
8.0.00.0170.00416.64
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0070.00316.61
7.4.290.0030.00316.55
7.4.280.0070.00016.41
7.4.270.0000.00716.55
7.4.260.0030.00313.26
7.4.250.0050.00216.42
7.4.240.0050.00216.48
7.4.230.0040.00416.41
7.4.220.0000.00716.50
7.4.210.0110.00616.59
7.4.200.0030.00316.70
7.4.130.0160.00316.34
7.4.120.0170.00716.25
7.4.110.0070.01416.58
7.4.100.0170.00316.36
7.4.90.0100.01316.48
7.4.80.0170.01016.43
7.4.70.0070.01316.36
7.4.60.0080.01116.35
7.4.50.0180.02016.16
7.4.40.0190.00716.50
7.4.30.0110.01516.49
7.4.20.0130.01016.23
7.4.10.0070.01716.61
7.4.00.0130.00916.50
7.3.330.0040.00416.12
7.3.320.0030.00313.11
7.3.310.0050.00216.21
7.3.300.0030.00316.25
7.3.290.0070.00816.23
7.3.260.0070.01816.41
7.3.250.0120.02116.48
7.3.240.0120.00916.55
7.3.230.0130.01716.35
7.3.220.0060.01616.23
7.3.210.0200.00316.23
7.3.200.0160.01316.35
7.3.190.0150.00616.44
7.3.180.0060.01516.58
7.3.170.0070.01316.31
7.3.160.0120.01216.28
7.3.150.0110.01416.26
7.3.140.0190.00616.32
7.3.130.0140.01016.35
7.3.120.0140.01116.20
7.3.110.0150.00616.18
7.3.100.0130.01216.52
7.3.90.0160.00316.25
7.3.80.0100.01516.51
7.3.70.0160.01016.26
7.3.60.0070.01516.31
7.3.50.0110.01116.27
7.3.40.0130.00916.25
7.3.30.0120.01016.23
7.3.20.0140.01016.31
7.3.10.0200.00316.21
7.3.00.0200.00316.27

preferences:
37.87 ms | 403 KiB | 5 Q