3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum A: string { case B = 'b'; case C = 'c'; } $b = 'b'; $val = A::from($b); var_dump($val);

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.10.0100.00716.67
8.5.00.0100.01119.86
8.4.150.0010.00114.05
8.4.140.0130.00817.41
8.4.130.0120.00817.72
8.4.120.0160.00522.36
8.4.110.0120.00822.53
8.4.100.0070.01320.65
8.4.90.0110.00920.77
8.4.80.0120.00722.65
8.4.70.0110.00917.95
8.4.60.0140.00518.83
8.4.50.0090.01119.28
8.4.40.0080.00017.70
8.4.30.0040.01520.35
8.4.20.0090.00919.66
8.4.10.0030.00617.57
8.3.280.0160.00718.29
8.3.270.0120.01016.42
8.3.260.0100.01116.66
8.3.250.0080.00918.97
8.3.240.0130.00518.64
8.3.230.0040.00616.62
8.3.220.0050.00717.14
8.3.210.0080.01016.47
8.3.200.0060.00316.44
8.3.190.0100.00917.17
8.3.180.0140.00616.51
8.3.170.0080.00017.16
8.3.160.0150.00318.52
8.3.150.0070.01118.79
8.3.140.0040.00418.30
8.3.130.0050.00316.68
8.3.120.0000.00818.70
8.3.110.0060.00316.79
8.3.100.0070.00418.29
8.3.50.0090.00016.54
8.2.290.0100.00820.25
8.2.280.0080.00718.61
8.2.270.0110.00817.26
8.2.260.0060.00316.41
8.2.250.0000.00816.86
8.2.240.0040.01217.27
8.2.230.0030.00718.31
8.2.220.0040.00416.40
8.1.330.0090.00921.75
8.1.320.0090.01116.07
8.1.310.0040.00416.91
8.1.300.0150.00018.62
8.0.110.0070.00016.90
8.0.100.0030.00516.72
8.0.90.0000.00716.88
8.0.80.0000.00716.77
8.0.70.0030.00316.63
8.0.60.0040.00416.91
8.0.50.0040.00416.85
8.0.30.0040.00416.75
8.0.20.0000.00816.71
8.0.10.0030.00516.75
8.0.00.0050.00317.04
7.4.240.0000.00716.44
7.4.230.0030.00416.29
7.4.220.0000.00716.52
7.4.210.0070.00016.27
7.4.200.0000.00716.25
7.4.190.0040.00416.50
7.4.180.0070.00016.24
7.4.160.0040.00416.60
7.4.150.0070.00016.46
7.4.140.0080.00016.33
7.4.130.0030.00316.15
7.4.120.0030.00316.19
7.4.110.0060.00016.34
7.4.100.0070.00016.20
7.4.90.0030.00315.98
7.4.80.0020.00516.19
7.4.70.0000.00716.19
7.4.60.0000.00716.34
7.4.50.0040.00416.15
7.4.40.0000.00716.29
7.4.30.0000.00716.08
7.4.20.0080.00016.31
7.4.10.0030.00316.30
7.4.00.0000.00716.38
7.3.310.0030.00316.14
7.3.300.0000.00716.14
7.3.290.0040.00416.12
7.3.280.0000.00616.00
7.3.270.0020.00516.15
7.3.260.0080.00016.14
7.3.250.0030.00316.15
7.3.240.0050.00216.18
7.3.230.0040.00416.09
7.3.220.0030.00316.12
7.3.210.0070.00016.04
7.3.200.0070.00016.12
7.3.190.0030.00316.13
7.3.180.0070.00016.08
7.3.170.0070.00016.07
7.3.160.0000.00716.00
7.3.150.0030.00316.11
7.3.140.0000.00716.14
7.3.130.0030.00316.15
7.3.120.0070.00016.13
7.3.110.0040.00415.82
7.3.100.0080.00015.95
7.3.90.0080.00016.36
7.3.80.0030.00316.01
7.3.70.0000.00616.18
7.3.60.0060.00016.23
7.3.50.0000.00716.20
7.3.40.0000.00616.24
7.3.30.0030.00316.20
7.3.20.0000.00718.02
7.3.10.0040.00417.93
7.3.00.0030.00718.04

preferences:
32.71 ms | 403 KiB | 5 Q