3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text="one #two three #four #five"; $parts = array_filter( explode(' ', $text), function($word) {return strpos($word,"#")===0;} ); print_r($parts);

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.4.130.0040.00518.03
8.4.120.0050.00320.42
8.4.110.0120.00918.82
8.4.100.0120.00917.81
8.4.90.0130.00517.67
8.4.80.0070.01122.57
8.4.70.0050.00317.89
8.4.60.0040.00420.25
8.4.50.0050.00417.59
8.4.40.0090.00619.28
8.4.30.0130.00719.71
8.4.20.0150.00617.36
8.4.10.0030.00619.62
8.3.250.0040.00418.66
8.3.240.0040.00416.43
8.3.230.0100.00916.40
8.3.220.0070.00118.98
8.3.210.0090.00916.77
8.3.200.0040.00516.84
8.3.190.0080.00617.20
8.3.180.0110.00816.39
8.3.170.0130.00618.63
8.3.160.0060.00316.50
8.3.150.0070.01120.63
8.3.140.0030.00516.55
8.3.130.0000.00816.52
8.3.120.0060.00320.79
8.3.110.0000.00816.75
8.3.100.0050.00524.06
8.3.90.0080.00026.77
8.3.80.0040.00416.63
8.3.70.0080.00816.58
8.3.60.0170.00318.31
8.3.50.0090.00816.48
8.3.40.0090.00618.57
8.3.30.0040.01118.75
8.3.20.0040.00423.53
8.3.10.0030.00621.90
8.3.00.0050.00219.21
8.2.290.0120.00820.29
8.2.280.0050.00320.30
8.2.270.0040.01416.97
8.2.260.0070.01117.07
8.2.250.0150.00018.89
8.2.240.0090.00016.91
8.2.230.0110.00020.94
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0080.00016.50
8.2.190.0100.01018.41
8.2.180.0040.01125.92
8.2.170.0130.00319.14
8.2.160.0130.00022.25
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00420.38
8.2.120.0030.00526.35
8.2.110.0060.00320.83
8.2.100.0070.00418.16
8.2.90.0000.00821.07
8.2.80.0060.00317.97
8.2.70.0030.00617.91
8.2.60.0090.00018.03
8.2.50.0030.00618.10
8.2.40.0070.00020.48
8.2.30.0040.00419.16
8.2.20.0000.00718.05
8.2.10.0070.00018.17
8.2.00.0080.00017.99
8.1.330.0130.00616.59
8.1.320.0120.00715.98
8.1.310.0060.00318.56
8.1.300.0060.00319.36
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0030.00522.05
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.14
8.1.230.0070.00419.15
8.1.220.0040.00417.80
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00518.59
8.1.160.0040.00418.97
8.1.150.0000.00818.88
8.1.140.0000.00819.41
8.1.130.0000.00718.87
8.1.120.0000.00717.48
8.1.110.0070.00017.46
8.1.100.0000.00717.34
8.1.90.0040.00417.47
8.1.80.0000.00917.41
8.1.70.0030.00317.46
8.1.60.0000.00817.62
8.1.50.0030.00917.51
8.1.40.0030.00617.53
8.1.30.0030.00717.69
8.1.20.0000.00717.71
8.1.10.0040.00417.57
8.1.00.0000.00717.43
8.0.300.0000.00819.60
8.0.290.0040.00416.75
8.0.280.0000.00718.24
8.0.270.0030.00317.12
8.0.260.0030.00318.54
8.0.250.0030.00316.89
8.0.240.0070.00016.76
8.0.230.0000.00716.75
8.0.220.0000.00716.70
8.0.210.0000.00716.82
8.0.200.0030.00316.92
8.0.190.0040.00416.96
8.0.180.0040.00416.87
8.0.170.0030.00316.93
8.0.160.0070.00016.89
8.0.150.0030.00316.67
8.0.140.0000.00716.77
8.0.130.0030.00313.30
8.0.120.0040.00416.78
8.0.110.0000.00716.72
8.0.100.0040.00416.77
8.0.90.0040.00416.71
8.0.80.0110.00416.84
8.0.70.0030.00516.77
8.0.60.0000.00716.81
8.0.50.0040.00416.93
8.0.30.0090.00917.05
8.0.20.0100.00817.40
8.0.10.0040.00416.96
8.0.00.0060.01217.05
7.4.330.0000.00515.55
7.4.320.0030.00316.63
7.4.300.0030.00316.63
7.4.290.0030.00316.44
7.4.280.0070.00016.38
7.4.270.0070.00016.57
7.4.260.0000.00513.37
7.4.250.0030.00316.60
7.4.240.0030.00316.52
7.4.230.0000.00716.52
7.4.220.0100.01316.61
7.4.210.0030.01116.54
7.4.200.0030.00316.32
7.4.160.0070.01416.46
7.4.150.0130.00317.40
7.4.140.0120.00817.86
7.4.130.0130.00416.58
7.4.120.0060.01216.49
7.4.110.0100.00716.40
7.4.100.0040.01316.39
7.4.90.0110.00616.47
7.4.80.0130.00619.39
7.4.70.0110.00616.42
7.4.60.0030.01316.58
7.4.50.0060.01016.67
7.4.40.0040.01216.59
7.4.30.0080.00816.39
7.4.00.0070.01015.13
7.3.330.0000.00513.22
7.3.320.0060.00013.23
7.3.310.0000.00716.10
7.3.300.0040.00416.14
7.3.290.0100.00716.23
7.3.280.0080.00816.24
7.3.270.0140.00717.40
7.3.260.0130.00316.50
7.3.250.0110.00716.29
7.3.240.0050.01416.30
7.3.230.0060.01016.31
7.3.210.0110.01116.48
7.3.200.0070.01016.36
7.3.190.0110.00616.46
7.3.180.0070.01416.26
7.3.170.0070.01316.50
7.3.160.0100.01316.41
7.2.330.0030.01416.56
7.2.320.0150.00316.68
7.2.310.0040.01216.42
7.2.300.0100.00716.64
7.2.290.0160.00016.48
7.2.80.0310.01214.53
7.2.70.0250.01114.82
7.2.60.0180.01015.90
7.2.50.0310.00315.94
7.2.40.0360.00014.95
7.2.30.0290.01114.93
7.2.20.0240.00715.03
7.2.10.0250.00814.79
7.2.00.0320.01015.00
7.1.200.0080.00415.55
7.1.190.0240.00713.60
7.1.180.0380.00613.63
7.1.170.0330.01013.53
7.1.160.0260.01613.80
7.1.150.0250.00614.02
7.1.140.0400.00313.80
7.1.130.0400.00713.97
7.1.120.0300.00913.69
7.1.110.0170.01413.85
7.1.100.0320.01013.90
7.1.90.0180.01113.52
7.1.80.0250.00313.50
7.1.70.0120.00715.32
7.1.60.0560.01532.38
7.1.50.0600.01032.18
7.1.40.0510.01331.91
7.1.30.0570.01132.14
7.1.20.0470.01332.07
7.1.10.0330.00314.13
7.1.00.0310.01214.31
7.0.310.0300.00313.51
7.0.300.0350.00513.54
7.0.290.0330.00013.44
7.0.270.1040.00713.61
7.0.260.0260.00913.32
7.0.250.0350.00613.33
7.0.240.0240.00413.62
7.0.230.0350.00613.14
7.0.220.0400.00713.43
7.0.210.0340.00913.22
7.0.200.0280.01014.12
7.0.190.0310.01014.14
7.0.180.0340.00313.85
7.0.170.0410.00513.93
7.0.160.0330.01213.97
7.0.150.0310.00713.90
7.0.140.0420.01013.94
7.0.130.0390.01014.02
7.0.120.0430.01214.03
7.0.110.0360.01013.83
7.0.100.0470.00814.08
7.0.90.0400.00814.12
7.0.80.0420.00613.94
7.0.70.0810.00913.94
7.0.60.0350.01013.89
7.0.50.0360.00714.01
7.0.40.0360.01013.96
7.0.30.0330.01114.17
7.0.20.0340.01114.04
7.0.10.0370.01214.12
7.0.00.0360.00914.11

preferences:
109.22 ms | 403 KiB | 5 Q