3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [false, 0, '0', 'string1', 'string2']; var_dump(current(array_filter($arr)));

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.60.0090.00616.25
8.3.50.0030.01416.50
8.3.40.0060.00918.41
8.3.30.0090.00618.41
8.3.20.0000.00821.73
8.3.10.0040.00423.61
8.3.00.0080.00018.91
8.2.180.0070.00716.75
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00021.12
8.2.110.0090.00319.09
8.2.100.0030.01017.78
8.2.90.0000.00817.84
8.2.80.0070.00019.40
8.2.70.0030.00617.93
8.2.60.0050.00317.62
8.2.50.0040.00418.16
8.2.40.0040.00420.45
8.2.30.0070.00019.37
8.2.20.0050.00518.07
8.2.10.0040.00417.86
8.2.00.0040.00417.98
8.1.280.0110.01125.92
8.1.270.0110.00720.04
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00022.47
8.1.230.0100.00321.08
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.96
8.1.160.0000.00718.82
8.1.150.0030.00318.91
8.1.140.0000.00717.64
8.1.130.0070.00020.25
8.1.120.0030.00317.36
8.1.110.0040.00417.30
8.1.100.0000.00817.35
8.1.90.0000.00717.45
8.1.80.0000.00817.41
8.1.70.0020.00517.38
8.1.60.0000.00917.48
8.1.50.0000.00817.45
8.1.40.0000.00817.45
8.1.30.0000.00817.52
8.1.20.0040.00417.51
8.1.10.0040.00417.48
8.1.00.0090.00017.34
8.0.300.0040.00419.98
8.0.290.0070.00016.63
8.0.280.0070.00018.30
8.0.270.0030.00317.24
8.0.260.0000.00716.75
8.0.250.0060.00016.77
8.0.240.0050.00216.76
8.0.230.0040.00416.84
8.0.220.0000.00716.80
8.0.210.0000.00716.79
8.0.200.0040.00416.86
8.0.190.0040.00416.74
8.0.180.0000.00716.76
8.0.170.0030.00616.80
8.0.160.0040.00416.83
8.0.150.0040.00416.76
8.0.140.0070.00016.77
8.0.130.0060.00013.20
8.0.120.0000.00716.84
8.0.110.0000.00816.90
8.0.100.0000.00716.68
8.0.90.0050.00216.93
8.0.80.0070.01416.82
8.0.70.0000.00816.88
8.0.60.0000.00716.70
8.0.50.0040.00416.76
8.0.30.0120.00517.03
8.0.20.0070.01117.40
8.0.10.0040.00416.82
8.0.00.0100.00716.56
7.4.330.0050.00015.55
7.4.320.0000.00716.50
7.4.300.0040.00416.42
7.4.290.0030.00316.42
7.4.280.0040.00416.51
7.4.270.0000.00816.53
7.4.260.0030.00316.36
7.4.250.0040.00416.51
7.4.240.0000.00916.43
7.4.230.0040.00416.50
7.4.220.0040.00416.27
7.4.210.0070.00716.49
7.4.200.0030.00516.50
7.4.160.0050.01016.46
7.4.140.0100.01017.86
7.4.130.0110.00716.59
7.4.120.0120.00816.37
7.4.110.0100.00716.54
7.4.100.0070.01016.30
7.4.90.0190.00316.55
7.4.80.0130.01319.39
7.4.70.0150.00616.50
7.4.60.0040.01216.39
7.4.50.0100.00716.42
7.4.40.0060.01616.45
7.4.00.0030.01414.81
7.3.330.0000.00613.06
7.3.320.0030.00312.97
7.3.310.0030.00316.21
7.3.300.0000.00716.11
7.3.290.0000.00715.97
7.3.280.0050.01116.11
7.3.260.0070.01016.11
7.3.240.0100.00816.27
7.3.230.0090.00916.14
7.3.210.0070.01316.48
7.3.200.0130.01016.16
7.3.190.0060.01016.08
7.3.180.0090.00616.27
7.3.170.0070.00916.23
7.3.160.0050.01116.23
7.3.10.0000.01516.65
7.3.00.0030.01016.21
7.2.330.0090.00816.48
7.2.320.0100.00716.36
7.2.310.0100.00716.41
7.2.300.0000.01816.39
7.2.290.0060.01216.52
7.2.130.0030.00716.66
7.2.120.0130.00316.68
7.2.110.0030.01316.73
7.2.100.0180.01116.66
7.2.90.0170.00016.58
7.2.80.0060.00616.49
7.2.70.0000.01716.73
7.2.60.0090.00516.76
7.2.50.0070.00316.49
7.2.40.0060.00616.73
7.2.30.0280.00617.51
7.2.20.0210.01016.92
7.2.10.0240.00917.18
7.2.00.0260.01317.34
7.1.250.0110.00715.63
7.1.200.0080.00415.76
7.1.150.0450.01216.67
7.1.140.0310.01216.39
7.1.130.0310.01016.27
7.1.120.0300.01016.50
7.1.110.0360.00915.91
7.1.100.0260.01115.72
7.1.90.0420.01015.88
7.1.80.0360.00916.13
7.1.70.0350.00715.02
7.1.60.0570.00933.26
7.1.50.0620.02132.78
7.1.40.0490.01332.57
7.1.30.0510.01032.61
7.1.20.0690.02332.69
7.1.10.0290.01214.50
7.1.00.0360.01014.85

preferences:
62.63 ms | 401 KiB | 5 Q