3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['beans' => 23, 'peas' => null, 'carrots' => 17, 'turnips' => '', 'potatoes' => 58]; $result = array_filter($data, fn($e) => empty($e)); echo print_r($result, 1);

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.140.0130.00917.64
8.4.130.0090.00918.76
8.4.120.0060.00618.56
8.4.110.0120.00818.70
8.4.100.0070.01617.71
8.4.90.0040.00420.65
8.4.80.0120.00818.75
8.4.70.0120.00818.79
8.4.60.0120.00620.33
8.4.50.0130.00517.86
8.4.40.0030.00517.41
8.4.30.0060.00918.85
8.4.20.0100.01017.83
8.4.10.0080.00817.48
8.3.270.0110.00916.41
8.3.260.0090.00916.38
8.3.250.0110.00816.43
8.3.240.0090.00916.67
8.3.230.0120.00816.30
8.3.220.0090.00918.98
8.3.210.0090.00816.73
8.3.200.0040.00516.51
8.3.190.0130.00616.60
8.3.180.0100.00518.41
8.3.170.0040.01118.93
8.3.160.0160.00318.54
8.3.150.0120.00620.67
8.3.140.0110.00816.62
8.3.130.0080.00018.14
8.3.120.0100.00720.42
8.3.110.0080.00320.94
8.3.100.0100.00718.21
8.3.90.0030.01026.77
8.3.80.0090.00016.50
8.3.70.0070.00716.63
8.3.60.0070.00718.18
8.3.50.0070.01420.03
8.3.40.0070.00718.62
8.3.30.0070.00718.56
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0100.01117.13
8.2.280.0120.00817.90
8.2.270.0070.01019.12
8.2.260.0090.00917.07
8.2.250.0150.00316.67
8.2.240.0130.00317.01
8.2.230.0030.00622.58
8.2.220.0050.00324.06
8.2.210.0090.00926.77
8.2.200.0060.00616.38
8.2.190.0080.01116.63
8.2.180.0070.01425.92
8.2.170.0140.00018.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00021.18
8.2.110.0030.00722.20
8.2.100.0120.00017.76
8.2.90.0040.00417.84
8.2.80.0000.00717.97
8.2.70.0000.00817.75
8.2.60.0080.00017.80
8.2.50.0040.00718.07
8.2.40.0080.00018.22
8.2.30.0030.00618.04
8.2.20.0000.00820.40
8.2.10.0040.00417.70
8.2.00.0040.00419.29
8.1.330.0140.00616.28
8.1.320.0090.01115.85
8.1.310.0030.00616.55
8.1.300.0080.00316.13
8.1.290.0070.00318.88
8.1.280.0070.01125.92
8.1.270.0090.00923.99
8.1.260.0120.00626.35
8.1.250.0050.00328.09
8.1.240.0090.00022.54
8.1.230.0070.00420.97
8.1.220.0040.00417.74
8.1.210.0040.00418.97
8.1.200.0000.01117.35
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0040.00418.89
8.1.150.0000.00718.54
8.1.140.0050.00217.45
8.1.130.0000.00717.45
8.1.120.0000.00717.40
8.1.110.0040.00417.29
8.1.100.0050.00217.36
8.1.90.0070.00017.36
8.1.80.0070.00017.38
8.1.70.0000.00717.46
8.1.60.0000.00817.47
8.1.50.0040.00417.48
8.1.40.0040.00417.52
8.1.30.0080.00017.57
8.1.20.0030.00517.63
8.1.10.0040.00417.52
8.1.00.0030.00517.34
8.0.300.0000.00719.90
8.0.290.0080.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00716.72
8.0.260.0000.00716.87
8.0.250.0040.00416.82
8.0.240.0080.00016.94
8.0.230.0000.00716.75
8.0.220.0000.00716.80
8.0.210.0040.00416.77
8.0.200.0030.00317.00
8.0.190.0040.00416.88
8.0.180.0050.00216.84
8.0.170.0060.00316.90
8.0.160.0070.00016.82
8.0.150.0030.00316.83
8.0.140.0000.00716.82
8.0.130.0070.00016.78
8.0.120.0000.00716.88
8.0.110.0000.00816.89
8.0.100.0040.00416.86
8.0.90.0030.00516.69
8.0.80.0040.00416.86
8.0.70.0040.00416.77
8.0.60.0000.00716.87
8.0.50.0000.00716.80
8.0.30.0050.00316.70
8.0.20.0030.00316.93
8.0.10.0000.00716.90
7.4.330.0000.00515.55
7.4.320.0030.00316.41
7.4.300.0000.00616.56
7.4.290.0000.00816.43
7.4.280.0040.00416.61
7.4.270.0000.00716.45
7.4.260.0030.00316.45
7.4.250.0000.00716.37
7.4.240.0030.00316.61
7.4.230.0000.00716.61
7.4.220.0070.00016.55
7.4.210.0000.00716.51
7.4.200.0070.00016.49
7.4.190.0080.00016.51
7.4.180.0030.00316.54
7.4.160.0000.00716.53
7.4.150.0030.00316.35
7.4.140.0030.00316.46
7.4.130.0070.00016.42
7.4.120.0000.00716.47
7.4.110.0030.00316.51
7.4.100.0000.00716.51
7.4.90.0030.00316.29
7.4.80.0070.00016.41
7.4.70.0000.00716.54
7.4.60.0020.00516.48
7.4.50.0000.00716.17
7.4.40.0000.00816.21
7.4.30.0000.00816.25
7.4.20.0040.00416.41
7.4.10.0000.00716.46
7.4.00.0030.00316.49

preferences:
30.12 ms | 403 KiB | 5 Q