3v4l.org

run code in 500+ PHP versions simultaneously
<?php // echo A::A; // Undefined constant "B" define('B', 'yes'); class A { public const A = B; } echo A::A; // yes ?>

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.5.80.0110.00616.73
8.5.70.0100.00316.70
8.5.60.0060.00616.91
8.5.50.0050.00216.44
8.5.30.0060.01118.14
8.5.20.0110.00820.27
8.5.10.0130.00516.66
8.5.00.0100.01019.73
8.4.230.0140.00519.61
8.4.220.0070.00319.67
8.4.210.0070.00421.08
8.4.180.0130.01019.64
8.4.170.0130.00921.87
8.4.160.0120.00922.07
8.4.150.0070.00616.89
8.4.140.0150.00517.52
8.4.130.0120.00718.46
8.4.120.0110.00820.83
8.4.110.0140.00822.54
8.4.100.0120.01017.67
8.4.90.0090.00718.42
8.4.80.0130.00717.85
8.4.70.0190.00517.62
8.4.60.0120.00717.55
8.4.50.0140.00317.89
8.4.40.0180.00417.58
8.4.30.0190.00317.29
8.4.20.0190.00517.73
8.4.10.0180.00517.45
8.3.320.0070.00618.21
8.3.310.0050.00518.38
8.3.300.0130.00920.76
8.3.290.0100.01020.78
8.3.280.0120.01118.31
8.3.270.0120.00716.66
8.3.260.0110.00816.32
8.3.250.0120.00718.66
8.3.240.0110.00716.31
8.3.230.0120.00716.48
8.3.220.0130.00716.49
8.3.210.0170.00216.39
8.3.200.0150.00716.36
8.3.190.0170.00316.25
8.3.180.0180.00416.21
8.3.170.0150.00516.61
8.3.160.0200.00316.36
8.3.150.0150.00616.35
8.3.140.0190.00416.25
8.3.130.0150.00616.14
8.3.120.0120.00516.63
8.3.110.0160.00416.37
8.3.100.0160.00516.44
8.3.90.0210.00216.59
8.3.80.0170.00516.24
8.3.70.0180.00616.39
8.3.60.0200.00416.30
8.3.50.0240.00616.24
8.3.40.0320.00917.56
8.3.30.0260.01417.37
8.3.20.0210.00417.57
8.3.10.0140.00517.70
8.3.00.0050.00717.55
8.2.320.0100.00818.12
8.2.310.0130.00618.05
8.2.300.0100.01020.31
8.2.290.0070.00420.20
8.2.280.0180.00116.38
8.2.270.0150.00516.28
8.2.260.0130.00616.71
8.2.250.0120.00716.55
8.2.240.0170.00516.29
8.2.230.0130.00516.27
8.2.220.0140.00416.42
8.2.210.0130.00616.56
8.2.200.0170.00216.51
8.2.190.0110.00616.47
8.2.180.0120.00516.49
8.2.170.0190.00317.55
8.2.160.0140.00617.45
8.2.150.0140.00517.66
8.2.140.0170.00417.29
8.2.130.0150.00717.51
8.2.120.0110.00717.53
8.2.110.0150.00317.31
8.2.100.0150.00317.57
8.2.90.0150.00617.69
8.2.80.0160.00317.55
8.2.70.0200.00217.48
8.2.60.0180.00317.56
8.2.50.0190.00417.63
8.2.40.0280.00617.56
8.2.30.0270.00317.32
8.2.20.0200.00817.44
8.2.10.0200.00617.18
8.2.00.0210.00617.41
8.1.340.0100.00820.19

preferences:
48.89 ms | 875 KiB | 5 Q