3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var; switch (false) { case isset($var): $var = ''; case $var: // delberiate fall through, case $var is *not* caught, but we end here anyways. $var = 1; case is_string($var): // delebirate fall through, case is_string($var) is *not* caught, but we end here anyways. $var = (string) $var; /* case customGuardFunction() */ default: echo "All checks passed!"; }

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.0140.00416.34
8.3.50.0100.00716.29
8.3.40.0080.00818.67
8.3.30.0040.01118.68
8.3.20.0000.00720.33
8.3.10.0060.00323.48
8.3.00.0080.00022.05
8.2.180.0100.01018.29
8.2.170.0120.00322.96
8.2.160.0030.01019.08
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0130.00720.95
8.2.120.0040.00426.35
8.2.110.0030.00620.36
8.2.100.0080.00417.78
8.2.90.0030.00519.17
8.2.80.0000.00818.03
8.2.70.0090.00017.75
8.2.60.0040.00418.05
8.2.50.0030.00618.10
8.2.40.0060.00320.64
8.2.30.0000.00719.17
8.2.20.0060.00317.86
8.2.10.0000.00718.02
8.2.00.0000.00717.92
8.1.280.0090.00925.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0060.00619.22
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0070.00317.13
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00718.84
8.1.160.0000.00718.88
8.1.150.0000.00718.86
8.1.140.0040.00419.42
8.1.130.0070.00018.82
8.1.120.0070.00017.42
8.1.110.0040.00417.39
8.1.100.0030.00517.36
8.1.90.0000.00817.40
8.1.80.0000.00717.40
8.1.70.0040.00417.37
8.1.60.0060.00317.46
8.1.50.0030.00517.41
8.1.40.0030.00517.53
8.1.30.0050.00317.61
8.1.20.0000.00817.58
8.1.10.0090.00017.58
8.1.00.0000.00717.46
8.0.300.0020.00518.77
8.0.290.0040.00416.63
8.0.280.0000.00718.49
8.0.270.0000.00717.25
8.0.260.0030.00316.80
8.0.250.0000.00616.91
8.0.240.0040.00416.90
8.0.230.0070.00016.76
8.0.220.0030.00316.73
8.0.210.0000.00716.78
8.0.200.0000.00816.77
8.0.190.0000.00816.82
8.0.180.0060.00616.76
8.0.170.0000.00716.82
8.0.160.0040.00416.71
8.0.150.0030.00416.69
8.0.140.0030.00616.74
8.0.130.0040.00413.21
8.0.120.0040.00416.65
8.0.110.0000.00716.69
8.0.100.0040.00416.88
8.0.90.0070.00016.83
8.0.80.0000.01716.74
8.0.70.0000.00816.79
8.0.60.0000.00816.62
8.0.50.0040.00416.64
8.0.30.0130.01016.82
8.0.20.0100.01117.40
8.0.10.0000.00716.97
8.0.00.0120.00616.99
7.4.330.0030.00315.55
7.4.320.0050.00216.61
7.4.300.0030.00316.50
7.4.290.0000.00716.58
7.4.280.0050.00316.59
7.4.270.0000.00716.52
7.4.260.0030.00316.50
7.4.250.0000.00816.54
7.4.240.0080.00016.40
7.4.230.0030.00316.50
7.4.220.0210.00316.43
7.4.210.0110.00316.51
7.4.200.0040.00416.67
7.4.160.0090.00916.58
7.4.150.0100.01317.40
7.4.140.0090.01017.86
7.4.130.0130.01016.49
7.4.120.0110.00616.45
7.4.110.0100.00716.48
7.4.100.0110.00616.48
7.4.90.0030.01316.48
7.4.80.0140.00719.39
7.4.70.0060.00916.33
7.4.60.0080.00816.43
7.4.50.0060.00916.22
7.4.40.0090.01216.43
7.4.30.0080.00816.35
7.4.00.0090.00814.93
7.3.330.0070.00013.04
7.3.320.0000.00613.12
7.3.310.0000.00716.08
7.3.300.0070.00016.10
7.3.290.0040.01116.25
7.3.280.0080.00816.16
7.3.270.0140.00317.40
7.3.260.0110.00616.31
7.3.250.0110.00816.32
7.3.240.0120.00516.37
7.3.230.0130.00416.25
7.3.210.0130.00316.41
7.3.200.0100.00716.10
7.3.190.0130.00316.30
7.3.180.0100.00716.31
7.3.170.0120.00816.42
7.3.160.0060.01516.30
7.3.120.0070.01014.93
7.3.110.0100.00714.54
7.3.100.0070.00714.56
7.3.90.0030.00914.84
7.3.80.0070.00414.71
7.3.70.0030.01014.79
7.3.60.0030.01614.85
7.3.50.0040.00414.77
7.3.40.0000.00914.60
7.3.30.0030.01014.61
7.3.20.0030.01016.69
7.3.10.0060.00616.41
7.3.00.0040.01116.52
7.2.330.0100.01016.52
7.2.320.0080.00816.40
7.2.310.0090.00916.44
7.2.300.0070.01016.55
7.2.290.0090.00916.57
7.2.250.0030.01314.84
7.2.240.0100.00715.00
7.2.230.0000.01214.85
7.2.220.0000.01615.07
7.2.210.0030.00815.04
7.2.200.0110.00415.09
7.2.190.0070.00714.83
7.2.180.0060.00315.05
7.2.170.0040.01115.02
7.2.60.0040.01116.89
7.2.00.0030.00919.06
7.1.330.0090.00615.67
7.1.320.0040.01115.72
7.1.310.0060.00315.56
7.1.300.0040.01215.55
7.1.290.0000.01115.71
7.1.280.0060.00615.66
7.1.270.0040.00415.67
7.1.260.0100.00315.79
7.1.200.0030.00915.64
7.1.100.0150.00418.11
7.1.70.0360.01216.82
7.1.60.0320.01634.93
7.1.50.0340.01134.49
7.1.40.0460.01732.69
7.1.30.0220.01934.35
7.1.20.0270.01634.37
7.1.10.0310.01216.58
7.1.00.0040.01516.41
7.0.200.0060.01616.55
7.0.190.0120.01016.77
7.0.180.0120.00816.22
7.0.170.0090.00916.20
7.0.160.0100.01116.07
7.0.150.0060.01316.22
7.0.140.0070.01516.45
7.0.130.0100.01116.41
7.0.120.0080.01416.43
7.0.110.0050.01516.11
7.0.100.0280.01414.42
7.0.90.0080.01216.14
7.0.80.0080.01116.45
7.0.70.0130.00816.24
7.0.60.0060.01315.81
7.0.50.0050.01316.11
7.0.40.0100.00816.22
7.0.30.0000.01416.21
7.0.20.0060.01116.41
7.0.10.0100.00816.36
7.0.00.0140.00216.50

preferences:
37.14 ms | 401 KiB | 5 Q