3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; switch ($foo) { case 'foo': echo 'this does not match....'; break; case 'bar': echo 'this matches'; break; }

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.3.60.0120.00318.43
8.3.50.0140.00718.16
8.3.40.0100.00320.43
8.3.30.0140.00018.45
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0040.01116.32
8.2.170.0090.00618.79
8.2.160.0030.01022.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00426.16
8.2.110.0050.00322.11
8.2.100.0040.00819.45
8.2.90.0000.00917.75
8.2.80.0100.00018.84
8.2.70.0080.00017.38
8.2.60.0000.00718.03
8.2.50.0040.00418.05
8.2.40.0050.00319.88
8.2.30.0080.00018.02
8.2.20.0090.00518.67
8.2.10.0080.00818.80
8.2.00.0070.00718.73
8.1.280.0100.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.15
8.1.230.0000.01217.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0040.00418.46
8.1.160.0050.00218.91
8.1.150.0080.00018.47
8.1.140.0070.00718.67
8.1.130.0090.00518.44
8.1.120.0120.00318.61
8.1.110.0130.00418.66
8.1.100.0090.00818.58
8.1.90.0150.00018.63
8.1.80.0120.00418.63
8.1.70.0130.00318.58
8.1.60.0200.00318.67
8.1.50.0150.00618.73
8.1.40.0170.00218.75
8.1.30.0140.00818.68
8.1.20.0150.00318.79
8.1.10.0090.00918.73
8.1.00.0130.00518.68
8.0.300.0000.00720.59
8.0.290.0030.00616.74
8.0.280.0030.00318.43
8.0.270.0000.00718.00
8.0.260.0100.00517.94
8.0.250.0160.00017.99
8.0.240.0100.00517.91
8.0.230.0070.00717.95
8.0.220.0140.00017.97
8.0.210.0120.00317.91
8.0.200.0100.00518.04
8.0.190.0120.00317.97
8.0.180.0130.00217.98
8.0.170.0130.00217.83
8.0.160.0110.00418.00
8.0.150.0160.00017.94
8.0.140.0150.00017.94
8.0.130.0100.00517.91
8.0.120.0100.00317.97
8.0.110.0080.00317.88
8.0.100.0130.00017.89
8.0.90.0090.00617.84
8.0.80.0130.00318.03
8.0.70.0000.01417.95
8.0.60.0110.00017.95
8.0.50.0100.00317.81
8.0.30.0070.00417.80
8.0.20.0070.00717.84
8.0.10.0090.00718.05

preferences:
50.16 ms | 400 KiB | 5 Q