3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "my name is numbre 9000 900 1"; $dictionary = array("my", "name", "is", "number"); foreach(explode(' ',$string) as $wrd){ if(in_array($wrd, $dictionary) || is_numeric($wrd)){ echo $wrd . PHP_EOL; } else { echo $wrd."->wrong" . PHP_EOL; } }

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.0130.00516.18
8.5.00.0130.00819.82
8.4.150.0020.00014.05
8.4.140.0100.01017.57
8.4.130.0050.00317.91
8.4.120.0120.00723.99
8.4.110.0100.00721.41
8.4.100.0060.00618.74
8.4.90.0050.00418.70
8.4.80.0130.00618.72
8.4.70.0050.00418.02
8.4.60.0130.00718.78
8.4.50.0070.01018.43
8.4.40.0060.00319.22
8.4.30.0070.01322.35
8.4.20.0190.00024.43
8.4.10.0090.00019.32
8.3.280.0070.01218.34
8.3.270.0110.01516.48
8.3.260.0100.00917.20
8.3.250.0110.00918.61
8.3.240.0110.00717.16
8.3.230.0050.00316.73
8.3.220.0050.00218.85
8.3.210.0120.00816.73
8.3.200.0110.00916.54
8.3.190.0080.00717.20
8.3.180.0100.00516.79
8.3.170.0030.00620.69
8.3.160.0100.01017.16
8.3.150.0200.00017.35
8.3.140.0100.00716.68
8.3.130.0060.00316.43
8.3.120.0090.00620.53
8.3.110.0050.00320.94
8.3.100.0040.00418.59
8.3.90.0070.00718.35
8.3.80.0040.00418.43
8.3.70.0150.00618.43
8.3.60.0070.01418.56
8.3.50.0110.00717.40
8.3.40.0060.01218.76
8.3.30.0080.00818.74
8.3.20.0080.00021.66
8.3.10.0060.00921.78
8.3.00.0030.01023.50
8.2.290.0120.00720.34
8.2.280.0100.00918.23
8.2.270.0120.00617.21
8.2.260.0040.00416.59
8.2.250.0130.00716.43
8.2.240.0030.00618.96
8.2.230.0030.00622.58
8.2.220.0050.00324.06
8.2.210.0040.00426.77
8.2.200.0040.00816.50
8.2.190.0100.00416.58
8.2.180.0190.00416.63
8.2.170.0040.01122.96
8.2.160.0160.00320.57
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00421.04
8.2.110.0060.00320.47
8.2.100.0080.00417.72
8.2.90.0040.00418.97
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0030.00618.35
8.2.30.0050.00318.02
8.2.20.0040.00417.96
8.2.10.0040.00419.23
8.2.00.0050.00219.14
8.1.330.0100.00821.79
8.1.320.0110.00916.31
8.1.310.0080.00816.62
8.1.300.0000.00816.00
8.1.290.0030.00618.88
8.1.280.0060.00825.92
8.1.270.0030.00620.70
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.91
8.1.230.0070.00421.99
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00317.00
8.1.180.0080.00018.10
8.1.170.0080.00018.48
8.1.160.0050.00218.92
8.1.150.0040.00418.96
8.1.140.0040.00417.38
8.1.130.0030.00320.03
8.1.120.0000.00717.45
8.1.110.0030.00517.44
8.1.100.0080.00017.34
8.1.90.0000.00717.33
8.1.80.0080.00017.46
8.1.70.0000.00717.46
8.1.60.0060.00617.61
8.1.50.0050.00217.53
8.1.40.0050.00317.42
8.1.30.0030.00617.67
8.1.20.0130.00017.56
8.1.10.0000.00817.52
8.1.00.0030.00617.43
8.0.300.0070.00018.77
8.0.290.0070.00016.58
8.0.280.0000.00818.32
8.0.270.0050.00216.73
8.0.260.0030.00318.43
8.0.250.0060.00316.80
8.0.240.0070.00016.95
8.0.230.0000.00816.91
8.0.220.0020.00516.94
8.0.210.0000.00716.92
8.0.200.0030.00316.93
8.0.190.0090.00016.94
8.0.180.0030.00316.82
8.0.170.0030.00616.89
8.0.160.0110.00016.82
8.0.150.0040.00416.88
8.0.140.0040.00416.89
8.0.130.0000.00613.32
8.0.120.0050.00316.82
8.0.110.0040.00416.84
8.0.100.0080.00016.75
8.0.90.0030.00516.75
8.0.80.0110.00716.85
8.0.70.0000.00716.70
8.0.60.0000.00816.77
8.0.50.0040.00416.77
8.0.30.0080.01217.33
8.0.20.0130.00917.12
8.0.10.0000.00716.97
8.0.00.0070.01116.83
7.4.330.0000.00515.55
7.4.320.0060.00016.49
7.4.300.0050.00316.59
7.4.290.0020.00516.51
7.4.280.0020.00516.51
7.4.270.0000.00716.45
7.4.260.0060.00316.58
7.4.250.0070.00016.32
7.4.240.0030.00316.51
7.4.230.0030.00316.68
7.4.220.0080.00016.69
7.4.210.0030.01116.56
7.4.200.0040.00416.62
7.4.160.0080.00816.51
7.4.140.0080.00817.86
7.4.130.0180.00016.30
7.4.120.0120.00616.60
7.4.110.0100.00616.43
7.4.100.0060.01116.32
7.4.90.0140.00716.46
7.4.80.0140.00719.39
7.4.70.0140.00416.62
7.4.60.0130.00316.46
7.4.50.0060.00916.15
7.4.40.0050.01416.57
7.4.00.0120.00414.87
7.3.330.0060.00012.94
7.3.320.0000.00513.01
7.3.310.0000.00716.27
7.3.300.0070.00016.28
7.3.290.0030.01116.27
7.3.280.0070.01216.24
7.3.260.0120.00816.47
7.3.240.0140.00516.40
7.3.230.0100.00716.25
7.3.210.0030.01416.37
7.3.200.0160.00316.26
7.3.190.0090.00816.20
7.3.180.0030.01316.52
7.3.170.0150.00416.51
7.3.160.0040.01216.31
7.3.60.0090.00514.70
7.3.50.0060.00714.72
7.3.40.0020.01014.56
7.3.30.0110.00214.76
7.3.20.0080.00515.74
7.3.10.0120.00215.52
7.3.00.0140.00515.49
7.2.330.0090.00816.33
7.2.320.0090.00916.64
7.2.310.0030.01416.67
7.2.300.0100.00716.70
7.2.290.0090.01316.39
7.2.190.0110.00514.86
7.2.180.0050.00914.84
7.2.170.0060.00614.80
7.2.160.0070.01214.91
7.2.150.0130.00616.07
7.2.140.0570.01115.75
7.2.130.0080.00615.82
7.2.120.0090.00816.00
7.2.110.0080.01115.82
7.2.100.0130.01015.83
7.2.90.0130.00315.93
7.2.80.0100.00415.90
7.2.70.0130.00515.84
7.2.60.0110.01015.98
7.2.50.0180.00516.03
7.2.40.0090.00715.99
7.2.30.0070.00716.01
7.2.20.0120.00315.94
7.2.10.0150.00515.86
7.2.00.0120.00815.95
7.1.300.0110.00614.75
7.1.290.0100.01314.55
7.1.280.0110.00714.78
7.1.270.0100.01014.78
7.1.260.0070.00714.74
7.1.250.0200.00814.82

preferences:
41.71 ms | 403 KiB | 5 Q