3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1, "apples",2, "oranges",3, "plums"); //$filtered = array_filter( $array, "ctype_alpha"); var_dump($filtered); ?>

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.0110.00418.43
8.3.30.0110.00418.48
8.3.20.0040.00420.12
8.3.10.0000.00823.51
8.3.00.0090.00023.36
8.2.170.0090.00622.96
8.2.160.0110.00420.53
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00321.11
8.2.120.0000.00826.35
8.2.110.0090.00020.47
8.2.100.0040.00817.72
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0080.00017.50
8.2.60.0000.00917.80
8.2.50.0050.00318.07
8.2.40.0080.00020.60
8.2.30.0040.00420.52
8.2.20.0000.00717.55
8.2.10.0070.00018.01
8.2.00.0040.00417.98
8.1.270.0100.00023.88
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0030.00622.50
8.1.230.0110.00021.03
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00917.10
8.1.180.0080.00018.10
8.1.170.0000.00718.51
8.1.160.0040.00420.56
8.1.150.0000.01118.72
8.1.140.0080.00019.44
8.1.130.0070.00017.53
8.1.120.0000.00717.38
8.1.110.0040.00417.37
8.1.100.0070.00017.41
8.1.90.0000.00817.28
8.1.80.0030.00617.26
8.1.70.0000.00717.42
8.1.60.0040.00417.45
8.1.50.0080.00017.40
8.1.40.0050.00317.29
8.1.30.0000.00917.59
8.1.20.0080.00017.48
8.1.10.0040.00417.49
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0020.00516.75
8.0.280.0000.00718.30
8.0.270.0030.00317.24
8.0.260.0040.00417.18
8.0.250.0070.00016.93
8.0.240.0000.00716.85
8.0.230.0030.00316.87
8.0.220.0040.00416.91
8.0.210.0030.00616.76
8.0.200.0030.00616.88
8.0.190.0040.00416.84
8.0.180.0040.00416.91
8.0.170.0040.00416.88
8.0.160.0030.00316.89
8.0.150.0000.00716.70
8.0.140.0000.00816.80
8.0.130.0000.00513.34
8.0.120.0050.00316.85
8.0.110.0040.00416.86
8.0.100.0030.00616.82
8.0.90.0040.00416.89
8.0.80.0070.01016.90
8.0.70.0080.00016.87
8.0.60.0030.00516.70
8.0.50.0000.00816.70
8.0.30.0130.00716.95
8.0.20.0100.00917.40
8.0.10.0020.00516.88
8.0.00.0050.01416.68
7.4.330.0030.00316.74
7.4.320.0000.00616.33
7.4.300.0070.00016.47
7.4.290.0030.00316.44
7.4.280.0060.00616.41
7.4.270.0030.00316.51
7.4.260.0030.00316.41
7.4.250.0000.00716.34
7.4.240.0000.00716.43
7.4.230.0000.00716.56
7.4.220.0130.01316.43
7.4.210.0080.01016.52
7.4.200.0070.00016.29
7.4.160.0100.00616.46
7.4.150.0140.00817.40
7.4.140.0100.00817.86
7.4.130.0090.00716.46
7.4.120.0090.00916.49
7.4.110.0130.00316.53
7.4.100.0100.01316.39
7.4.90.0070.01016.37
7.4.80.0080.00819.39
7.4.70.0100.00716.26
7.4.60.0060.01016.46
7.4.50.0030.01216.29
7.4.40.0060.01516.52
7.4.30.0070.01016.45
7.4.00.0070.00714.84
7.3.330.0030.00313.07
7.3.320.0000.00513.03
7.3.310.0050.00216.26
7.3.300.0030.00316.06
7.3.290.0030.00316.19
7.3.280.0090.00616.20
7.3.270.0000.01617.40
7.3.260.0120.00616.18
7.3.250.0100.00816.19
7.3.240.0030.01416.28
7.3.230.0130.00416.39
7.3.210.0040.01216.49
7.3.200.0130.00316.12
7.3.190.0030.01216.24
7.3.180.0070.01316.34
7.3.170.0100.00716.27
7.3.160.0120.00316.27
7.3.10.0140.00316.52
7.3.00.0060.00316.27
7.2.330.0130.00416.32
7.2.320.0170.00016.48
7.2.310.0090.00916.29
7.2.300.0170.00016.48
7.2.290.0070.01016.34
7.2.130.0040.01116.53
7.2.120.0000.01716.84
7.2.110.0060.00616.63
7.2.100.0030.00916.72
7.2.90.0040.00716.63
7.2.80.0090.00916.77
7.2.70.0030.00716.61
7.2.60.0080.00616.53
7.2.50.0000.00816.77
7.2.40.0030.00716.75
7.2.30.0000.01216.50
7.2.20.0100.00316.62
7.2.10.0090.00016.69
7.2.00.0050.00717.85
7.1.250.0070.00715.71
7.1.240.0040.00715.52
7.1.230.0080.00615.74
7.1.220.0100.00015.68
7.1.210.0030.01015.70
7.1.200.0040.00615.63
7.1.190.0070.00415.62
7.1.180.0060.01015.54
7.1.170.0000.00815.84
7.1.160.0080.00415.73
7.1.150.0120.00615.34
7.1.140.0090.00615.50
7.1.130.0060.00615.55
7.1.120.0060.00615.66
7.1.110.0100.00315.65
7.1.100.0060.00616.96
7.1.90.0040.01115.52
7.1.80.0030.01315.63
7.1.70.0030.00916.51
7.1.60.0130.00617.21
7.1.50.0090.01016.21
7.1.40.0120.00615.51
7.1.30.0090.00315.48
7.1.20.0030.01315.79
7.1.10.0000.01415.72
7.1.00.0060.04019.17
7.0.330.0030.00815.31
7.0.320.0090.00015.33
7.0.310.0070.00315.18
7.0.300.0060.00615.47
7.0.290.0070.00015.43
7.0.280.0040.00715.33
7.0.270.0030.00515.07
7.0.260.0140.00015.23
7.0.250.0070.00015.35
7.0.240.0060.00315.56
7.0.230.0060.00315.40
7.0.220.0060.00615.21
7.0.210.0070.00015.18
7.0.200.0280.00614.95
7.0.190.0080.00015.24
7.0.180.0080.00015.35
7.0.170.0030.00915.52
7.0.160.0070.00715.06
7.0.150.0070.00715.34
7.0.140.0040.00815.13
7.0.130.0030.01315.28
7.0.120.0040.00415.54
7.0.110.0060.00615.52
7.0.100.0030.01015.39
7.0.90.0030.00715.32
7.0.80.0060.00615.48
7.0.70.0040.00415.50
7.0.60.0050.04617.62
7.0.50.0090.04216.66
7.0.40.0130.03716.83
7.0.30.0150.04216.75
7.0.20.0150.03716.71
7.0.10.0070.04516.79
7.0.00.0110.02016.71
5.6.380.0030.00714.50
5.6.370.0040.01014.65
5.6.360.0030.00614.36
5.6.350.0000.01114.26
5.6.340.0100.00314.40
5.6.330.0040.01214.45
5.6.320.0000.01414.24
5.6.310.0060.00614.10
5.6.300.0000.01014.03
5.6.290.0100.00314.38
5.6.280.0050.01517.53
5.6.270.0000.01514.25
5.6.260.0030.00714.31
5.6.250.0040.00714.14
5.6.240.0130.00314.14
5.6.230.0060.01014.23
5.6.220.0030.01014.12
5.6.210.0060.04117.45
5.6.200.0050.02316.24
5.6.190.0040.02717.29
5.6.180.0170.04217.15
5.6.170.0220.03717.46
5.6.160.0060.02217.29
5.6.150.0080.03716.08
5.6.140.0060.04116.29
5.6.130.0030.02616.20
5.6.120.0030.03217.67
5.6.110.0060.02517.76
5.6.100.0070.04617.71
5.6.90.0070.03517.67
5.6.80.0040.04917.15
5.6.70.0110.00013.82
5.6.60.0070.01014.09
5.6.50.0000.01513.82
5.6.40.0060.00313.91
5.6.30.0040.00713.95
5.6.20.0100.00314.18
5.6.10.0070.01114.15
5.6.00.0030.00914.01
5.5.380.0040.00410.84
5.5.370.0000.00711.00
5.5.360.0040.00810.97
5.5.350.0120.04015.50
5.5.340.0050.02114.54
5.5.330.0060.04115.86
5.5.320.0050.02815.63
5.5.310.0100.02315.72
5.5.300.0070.03514.48
5.5.290.0090.03714.43
5.5.280.0040.02415.94
5.5.270.0030.04015.91
5.5.260.0070.02315.80
5.5.250.0070.02715.83
5.5.240.0140.03915.40
5.5.230.0060.00610.83
5.5.220.0040.00410.76
5.5.210.0080.00311.04
5.5.200.0030.01011.02
5.5.190.0030.00610.97
5.5.180.0090.00310.63
5.5.170.0100.00010.95
5.5.160.0100.00010.79
5.5.150.0000.01110.88
5.5.140.0070.00010.98
5.5.130.0060.00610.49
5.5.120.0060.00610.74
5.5.110.0040.00710.95
5.5.100.0030.00310.87
5.5.90.0070.00310.72
5.5.80.0060.00610.69
5.5.70.0050.00310.95
5.5.60.0040.00810.66
5.5.50.0070.00310.98
5.5.40.0000.00610.92
5.5.30.0000.01210.88
5.5.20.0000.01110.80
5.5.10.0040.00710.68
5.5.00.0070.00710.70

preferences:
55.4 ms | 400 KiB | 5 Q