3v4l.org

run code in 300+ PHP versions simultaneously
<?php $check = fn ($a) => ctype_upper($a); $check(3); $check([]); $check(new stdClass); $check(3.5); $check(true); $check(null); $check(0); $check(256);

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.120.0050.00423.84
8.4.110.0110.00918.50
8.4.100.0140.00717.80
8.4.90.0100.01020.54
8.4.80.0130.00718.78
8.4.70.0110.01018.75
8.4.60.0120.00820.25
8.4.50.0100.01122.44
8.4.40.0120.00617.73
8.4.30.0080.00024.14
8.4.20.0100.00620.35
8.4.10.0060.01319.36
8.3.250.0130.00617.05
8.3.240.0110.00817.31
8.3.230.0140.00516.70
8.3.220.0110.00718.69
8.3.210.0110.00816.76
8.3.200.0050.00416.68
8.3.190.0100.00816.98
8.3.180.0150.00418.63
8.3.170.0110.00717.05
8.3.160.0070.01118.64
8.3.150.0000.01417.17
8.3.140.0080.01216.75
8.3.130.0050.00516.40
8.3.120.0050.00518.73
8.3.110.0100.01016.62
8.3.100.0150.00716.56
8.3.90.0150.00916.25
8.3.80.0160.00716.74
8.3.70.0200.00316.56
8.3.60.0190.00516.49
8.3.50.0140.01016.18
8.3.40.0160.00717.13
8.3.30.0180.00017.46
8.3.20.0200.00017.19
8.3.10.0170.00017.24
8.3.00.0090.00317.52
8.2.290.0130.00617.09
8.2.280.0120.00820.22
8.2.270.0060.00316.63
8.2.260.0030.00516.92
8.2.250.0040.00418.36
8.2.240.0040.00717.20
8.2.230.0110.00816.62
8.2.220.0190.00016.82
8.2.210.0140.00516.43
8.2.200.0150.00316.77
8.2.190.0190.00316.48
8.2.180.0080.01216.57
8.2.170.0220.00317.63
8.2.160.0120.00817.47
8.2.150.0130.00617.32
8.2.140.0180.00317.53
8.2.130.0160.00417.22
8.2.120.0130.00717.47
8.2.110.0150.00617.29
8.2.100.0180.00417.35
8.2.90.0140.00717.53
8.2.80.0170.00317.30
8.2.70.0160.00417.10
8.2.60.0150.00417.52
8.2.50.0120.00817.48
8.2.40.0180.00017.39
8.2.30.0160.00617.33
8.2.20.0200.00017.30
8.2.10.0140.00517.23
8.2.00.0130.00517.15
8.1.330.0140.00516.36
8.1.320.0130.00617.98
8.1.310.0040.01416.81
8.1.300.0040.01520.28
8.1.290.0110.00816.18
8.1.280.0150.00316.19
8.1.270.0210.00017.24
8.1.260.0200.00017.06
8.1.250.0090.00917.37
8.1.240.0120.00617.18
8.1.230.0150.00417.03
8.1.220.0130.00716.95
8.1.210.0170.00717.05
8.1.200.0130.00417.13
8.1.190.0170.00016.77
8.1.180.0130.00516.96
8.1.170.0090.00917.14
8.1.160.0100.00816.85
8.1.150.0110.00816.88
8.1.140.0090.00917.05
8.1.130.0070.01116.98
8.1.120.0160.00317.19
8.1.110.0070.01117.20
8.1.100.0140.00617.14
8.1.90.0180.00017.01
8.1.80.0190.00016.81
8.1.70.0150.00416.92
8.1.60.0160.00317.20
8.1.50.0120.00917.40
8.1.40.0150.00617.24
8.1.30.0200.00017.07
8.1.20.0200.00317.14
8.1.10.0160.00416.92
8.1.00.0180.00217.02

preferences:
26.64 ms | 403 KiB | 5 Q