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.0080.01018.46
8.5.00.0140.00719.94
8.4.160.0130.00923.75
8.4.150.0010.00214.05
8.4.140.0120.00917.61
8.4.130.0120.00917.77
8.4.120.0120.00920.47
8.4.110.0120.00619.12
8.4.100.0120.00917.64
8.4.90.0120.00817.44
8.4.80.0100.01117.55
8.4.70.0100.00917.69
8.4.60.0050.00320.75
8.4.50.0090.01318.65
8.4.40.0030.00717.66
8.4.30.0100.01020.30
8.4.20.0030.01719.82
8.4.10.0090.00017.75
8.3.280.0020.00014.05
8.3.270.0120.00716.68
8.3.260.0140.00516.39
8.3.250.0080.00818.91
8.3.240.0100.01016.69
8.3.230.0130.00616.63
8.3.220.0100.00418.41
8.3.210.0050.00318.51
8.3.200.0120.01016.59
8.3.190.0110.00717.11
8.3.180.0160.00316.51
8.3.170.0000.00717.00
8.3.160.0030.01517.05
8.3.150.0130.00718.91
8.3.140.0080.00017.00
8.3.130.0120.00318.15
8.3.120.0040.00420.89
8.3.110.0120.00322.58
8.3.100.0060.00322.58
8.3.90.0100.01022.58
8.3.50.0080.00022.58
8.2.290.0110.01018.84
8.2.280.0120.00718.48
8.2.270.0100.01017.28
8.2.260.0080.00018.30
8.2.250.0110.00416.61
8.2.240.0120.00617.16
8.2.230.0000.00822.58
8.2.220.0080.00022.58
8.2.210.0000.00822.58
8.1.330.0090.01016.54
8.1.320.0100.00616.19
8.1.310.0040.00418.56
8.1.300.0050.01018.26
8.0.110.0040.00416.89
8.0.100.0000.00716.75
8.0.90.0050.00216.79
8.0.80.0000.00716.70
8.0.70.0040.00416.66
8.0.60.0070.00016.92
8.0.50.0050.00316.67
8.0.30.0070.00016.88
8.0.20.0070.00016.76
8.0.10.0000.00716.92
8.0.00.0040.00416.82
7.4.240.0070.00016.18
7.4.230.0070.00016.24
7.4.220.0000.00716.55
7.4.210.0030.00316.45
7.4.200.0000.00816.32
7.4.190.0000.00716.51
7.4.180.0070.00016.53
7.4.160.0000.00716.50
7.4.150.0070.00016.22
7.4.140.0040.00416.42
7.4.130.0040.00416.20
7.4.120.0030.00316.36
7.4.110.0050.00216.06
7.4.100.0030.00316.48
7.4.90.0040.00416.22
7.4.80.0000.00716.10
7.4.70.0030.00316.32
7.4.60.0000.00716.35
7.4.50.0050.00315.94
7.4.40.0030.00316.00
7.4.30.0000.00816.21
7.4.20.0040.00416.28
7.4.10.0030.00316.05
7.4.00.0000.00716.34
7.3.310.0030.00316.02
7.3.300.0030.00316.02
7.3.290.0070.00016.07
7.3.280.0000.00716.02
7.3.270.0030.00316.13
7.3.260.0040.00416.21
7.3.250.0000.00716.15
7.3.240.0050.00216.16
7.3.230.0000.00616.20
7.3.220.0000.00616.12
7.3.210.0040.00416.12
7.3.200.0030.00315.98
7.3.190.0030.00316.14
7.3.180.0030.00316.09
7.3.170.0000.00716.13
7.3.160.0000.00716.01
7.3.150.0000.00716.09
7.3.140.0030.00316.05
7.3.130.0000.00616.15
7.3.120.0070.00016.00
7.3.110.0000.00716.07
7.3.100.0070.00016.09
7.3.90.0070.00016.21
7.3.80.0040.00415.95
7.3.70.0000.00616.17
7.3.60.0000.00616.11
7.3.50.0060.00016.16
7.3.40.0040.00416.24
7.3.30.0000.00616.23
7.3.20.0050.00218.11
7.3.10.0030.00318.07
7.3.00.0040.00418.04

preferences:
37.82 ms | 403 KiB | 5 Q