3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum A: string { case B = 'b'; case C = 'c'; } $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.0090.00916.70
8.5.00.0090.01120.08
8.4.150.0030.00014.05
8.4.140.0130.00817.39
8.4.130.0120.00718.82
8.4.120.0120.00823.72
8.4.110.0120.00717.97
8.4.100.0040.00418.89
8.4.90.0130.00720.58
8.4.80.0090.00218.64
8.4.70.0120.00717.67
8.4.60.0120.00918.68
8.4.50.0130.00818.54
8.4.40.0040.00417.57
8.4.30.0100.01020.68
8.4.20.0220.00019.60
8.4.10.0000.00817.55
8.3.280.0080.01218.30
8.3.270.0050.00316.27
8.3.260.0140.00516.50
8.3.250.0110.01018.67
8.3.240.0130.00616.91
8.3.230.0120.00716.33
8.3.220.0100.00619.02
8.3.210.0090.00718.53
8.3.200.0050.00416.54
8.3.190.0100.00818.88
8.3.180.0100.00917.14
8.3.170.0170.00320.64
8.3.160.0070.01318.39
8.3.150.0110.00717.02
8.3.140.0110.00716.56
8.3.130.0000.01018.15
8.3.120.0060.00320.49
8.3.110.0050.00322.58
8.3.100.0060.00320.94
8.3.90.0060.00320.94
8.3.50.0040.00420.94
8.2.290.0100.00720.47
8.2.280.0110.00818.61
8.2.270.0040.01317.36
8.2.260.0070.01016.75
8.2.250.0070.01116.56
8.2.240.0090.00017.36
8.2.230.0060.00320.94
8.2.220.0080.00022.58
8.2.210.0080.00022.58
8.1.330.0090.00921.82
8.1.320.0040.00416.21
8.1.310.0090.00018.01
8.1.300.0060.01320.13
8.0.110.0030.00516.66
8.0.100.0060.00316.95
8.0.90.0030.00616.91
8.0.80.0000.00816.82
8.0.70.0000.00816.75
8.0.60.0040.00416.85
8.0.50.0000.00816.88
8.0.30.0040.00416.71
8.0.20.0050.00317.02
8.0.10.0000.00716.87
8.0.00.0000.00817.00
7.4.240.0030.00316.48
7.4.230.0070.00016.53
7.4.220.0000.00716.34
7.4.210.0000.00716.44
7.4.200.0070.00016.50
7.4.190.0000.00816.60
7.4.180.0040.00416.55
7.4.160.0040.00416.22
7.4.150.0020.00516.13
7.4.140.0000.00716.09
7.4.130.0000.00716.20
7.4.120.0030.00316.18
7.4.110.0000.00816.23
7.4.100.0050.00516.37
7.4.90.0000.00816.04
7.4.80.0030.00516.36
7.4.70.0040.00416.29
7.4.60.0020.00516.05
7.4.50.0030.00316.05
7.4.40.0000.00715.95
7.4.30.0000.00716.11
7.4.20.0070.00016.11
7.4.10.0000.00816.31
7.4.00.0030.00316.30
7.3.310.0000.00715.98
7.3.300.0050.00216.01
7.3.290.0030.00316.19
7.3.280.0040.00416.19
7.3.270.0030.00316.18
7.3.260.0000.00716.18
7.3.250.0030.00316.16
7.3.240.0030.00316.18
7.3.230.0070.00016.14
7.3.220.0030.00316.14
7.3.210.0000.00816.07
7.3.200.0000.00716.11
7.3.190.0030.00316.08
7.3.180.0040.00416.14
7.3.170.0000.00716.09
7.3.160.0000.00715.97
7.3.150.0030.00316.14
7.3.140.0030.00316.07
7.3.130.0030.00316.09
7.3.120.0070.00016.01
7.3.110.0030.00316.02
7.3.100.0020.00516.02
7.3.90.0040.00416.15
7.3.80.0000.00716.01
7.3.70.0080.00016.00
7.3.60.0040.00416.15
7.3.50.0030.00316.07
7.3.40.0000.00716.20
7.3.30.0030.00316.15
7.3.20.0050.00218.11
7.3.10.0040.00417.99
7.3.00.0050.00517.98

preferences:
280.24 ms | 403 KiB | 5 Q