3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $foo = 1; switch($foo) { case true: print "Foo is true (foo=$foo)"; break; case 1: print "Foo is 1; (foo=$foo)"; 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.0110.00716.38
8.3.50.0100.01018.02
8.3.40.0060.01518.54
8.3.30.0120.00618.71
8.3.20.0000.01421.90
8.3.10.0000.00723.66
8.3.00.0080.00018.92
8.2.180.0190.00318.41
8.2.170.0080.00822.96
8.2.160.0090.00620.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.76
8.2.120.0080.00026.35
8.2.110.0060.00322.16
8.2.100.0090.00417.78
8.2.90.0080.00017.89
8.2.80.0050.00319.28
8.2.70.0040.00417.93
8.2.60.0080.00017.93
8.2.50.0000.00918.10
8.2.40.0040.00420.47
8.2.30.0030.00619.36
8.2.20.0040.00418.11
8.2.10.0030.00619.79
8.2.00.0000.00718.16
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.15
8.1.230.0080.00320.65
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00419.06
8.1.160.0030.00518.95
8.1.150.0040.00419.01
8.1.140.0040.00417.65
8.1.130.0030.00620.21
8.1.120.0040.00417.38
8.1.110.0070.00017.47
8.1.100.0100.00017.39
8.1.90.0000.01017.46
8.1.80.0070.00017.45
8.1.70.0050.00217.39
8.1.60.0100.00217.57
8.1.50.0060.00317.37
8.1.40.0060.00317.54
8.1.30.0040.00417.54
8.1.20.0060.00317.63
8.1.10.0030.00617.48
8.1.00.0000.00917.47
8.0.300.0000.00820.09
8.0.290.0040.00416.63
8.0.280.0070.00018.44
8.0.270.0000.00917.11
8.0.260.0040.00416.88
8.0.250.0000.00617.04
8.0.240.0030.00316.87
8.0.230.0070.00016.90
8.0.220.0000.00716.79
8.0.210.0000.00716.88
8.0.200.0000.00716.98
8.0.190.0050.00317.00
8.0.180.0070.00016.87
8.0.170.0060.00316.73
8.0.160.0040.00416.95
8.0.150.0050.00216.91
8.0.140.0000.00716.90
8.0.130.0060.00013.33
8.0.120.0040.00416.85
8.0.110.0000.00816.73
8.0.100.0040.00416.77
8.0.90.0000.00716.89
8.0.80.0100.01316.95
8.0.70.0040.00416.79
8.0.60.0040.00416.79
8.0.50.0070.00016.71
8.0.30.0110.00717.11
8.0.20.0110.00817.40
8.0.10.0000.00717.13
8.0.00.0170.00316.63
7.4.330.0050.00015.55
7.4.320.0060.00016.55
7.4.300.0060.00016.48
7.4.290.0000.00716.57
7.4.280.0040.00416.47
7.4.270.0080.00016.43
7.4.260.0070.00016.52
7.4.250.0000.00716.63
7.4.240.0030.00316.55
7.4.230.0000.00716.58
7.4.220.0040.00416.53
7.4.210.0050.00916.63
7.4.200.0030.00316.55
7.4.160.0100.00616.52
7.4.140.0100.00817.86
7.4.130.0230.00016.38
7.4.120.0090.00816.47
7.4.110.0070.01016.62
7.4.100.0070.01316.56
7.4.90.0130.00916.54
7.4.80.0070.01619.39
7.4.70.0030.01416.50
7.4.60.0060.01216.53
7.4.50.0090.00616.27
7.4.40.0040.01516.31
7.4.30.0100.01016.51
7.4.20.0100.00616.28
7.4.10.0070.01416.47
7.4.00.0060.01115.42
7.3.330.0000.00513.16
7.3.320.0080.00013.20
7.3.310.0070.00016.28
7.3.300.0030.00316.17
7.3.290.0070.00016.23
7.3.280.0260.01016.23
7.3.260.0130.00716.28
7.3.240.0110.00816.18
7.3.230.0100.00716.45
7.3.210.0130.00316.49
7.3.200.0090.00916.26
7.3.190.0060.01116.38
7.3.180.0160.00716.53
7.3.170.0150.00416.29
7.3.160.0100.00616.43
7.3.150.0090.01216.15
7.3.140.0140.00616.43
7.3.130.0060.01516.20
7.3.120.0070.00915.74
7.3.110.0100.00815.44
7.3.100.0020.01115.70
7.3.90.0090.00715.40
7.3.80.0060.00915.70
7.3.70.0030.01015.47
7.3.60.0050.01115.47
7.3.50.0070.01015.59
7.3.40.0050.00915.44
7.3.30.0080.01015.48
7.3.20.0040.01217.23
7.3.10.0080.00617.45
7.3.00.0070.00717.45
7.2.330.0120.00916.37
7.2.320.0180.00616.64
7.2.310.0060.01016.68
7.2.300.0170.00716.42
7.2.290.0060.01116.46
7.2.280.0160.00716.65
7.2.270.0060.01316.30
7.2.260.0060.01316.58
7.2.250.0090.01015.93
7.2.240.0110.00915.92
7.2.230.0070.00815.86
7.2.220.0030.01415.81
7.2.210.0090.00715.63
7.2.200.0110.00515.65
7.2.190.0110.00715.65
7.2.180.0060.01115.70
7.2.170.0070.00615.70
7.2.160.0090.01216.45
7.2.150.0060.01218.46
7.2.140.0130.00718.36
7.2.130.0000.01518.38
7.2.120.0060.01018.34
7.2.110.0090.00918.32
7.2.100.0090.00618.48
7.2.90.0090.00918.31
7.2.80.0050.01318.45
7.2.70.0000.01718.16
7.2.60.0050.01017.55
7.2.50.0060.00918.28
7.2.40.0750.00817.98
7.2.30.0780.00717.87
7.2.20.0610.00817.95
7.2.10.0560.01017.92
7.2.00.0570.01017.98
7.1.330.0150.00716.47
7.1.320.0080.01316.59
7.1.310.0140.00616.51
7.1.300.0130.00416.42
7.1.290.0190.00216.54
7.1.280.0090.01116.47
7.1.270.0180.00516.61
7.1.260.0120.01116.43
7.1.250.0200.00917.24
7.1.240.0180.01117.22
7.1.230.0200.00817.29
7.1.220.0260.00417.26
7.1.210.0210.00617.16
7.1.200.0130.00716.54
7.1.190.0240.00617.26
7.1.180.0150.01217.12
7.1.170.0190.00917.16
7.1.160.0840.00916.79
7.1.150.0860.00816.86
7.1.140.0590.01216.83
7.1.130.0560.01416.83
7.1.120.0490.01116.87
7.1.110.0610.01116.68
7.1.100.0530.00816.46
7.1.90.0860.01016.54
7.1.80.0690.01216.50
7.1.70.0680.00616.16
7.1.60.0780.00825.21
7.1.50.0980.01225.06
7.1.40.0930.01124.89
7.1.30.1000.01325.06
7.1.20.0900.01025.01
7.1.10.0750.00915.98
7.1.00.0560.00815.94
7.0.330.0150.01117.03
7.0.320.0160.01216.91
7.0.310.0200.00716.94
7.0.300.0210.00316.91
7.0.290.0120.01216.95
7.0.280.0180.00617.10
7.0.270.0210.00417.03
7.0.260.0120.01216.88
7.0.250.0220.00816.98
7.0.240.0180.00917.10
7.0.230.0100.01516.92
7.0.220.0210.01117.00
7.0.210.0120.01617.12
7.0.200.0200.00816.96
7.0.190.0280.01016.98
7.0.180.0220.01117.00
7.0.170.0270.00816.98
7.0.160.0320.00016.99
7.0.150.0100.01916.97
7.0.140.0240.00317.07
7.0.130.0230.00016.94
7.0.120.0120.01216.95
7.0.110.0180.00716.74
7.0.100.0130.01316.84
7.0.90.0200.00317.12
7.0.80.0200.00316.91
7.0.70.0100.01417.18
7.0.60.0200.00416.79
7.0.50.0220.00716.92
7.0.40.0150.00916.93
7.0.30.0150.01716.92
7.0.20.0250.01015.01
7.0.10.0210.00416.84
7.0.00.0110.01416.97
5.6.400.0030.02215.64
5.6.390.0200.01216.08
5.6.380.0240.01015.84
5.6.370.0140.01815.65
5.6.360.0230.00516.07
5.6.350.0140.01715.92
5.6.340.0170.01015.93
5.6.330.0130.01615.60
5.6.320.0180.00716.04
5.6.310.0270.00415.73
5.6.300.0120.01715.75
5.6.290.0090.01515.88
5.6.280.0210.00915.91
5.6.270.0120.01215.61
5.6.260.0160.00915.96
5.6.250.0180.01115.75
5.6.240.0160.01015.78
5.6.230.0180.00716.00
5.6.220.0210.00615.89
5.6.210.0130.00715.56
5.6.200.0180.00815.71
5.6.190.0180.00915.69
5.6.180.0240.01415.90
5.6.170.0250.00615.70
5.6.160.0220.00615.77
5.6.150.0190.00715.67
5.6.140.0180.00915.94
5.6.130.0080.01715.87
5.6.120.0200.00715.74
5.6.110.0190.01115.70
5.6.100.0240.00415.69
5.6.90.0200.01315.86
5.6.80.0160.01615.66
5.6.70.0170.01415.63
5.6.60.0170.01315.57
5.6.50.0090.01815.46
5.6.40.0250.00915.61
5.6.30.0190.00615.69
5.6.20.0070.02015.50
5.6.10.0140.01415.74
5.6.00.0210.00315.56

preferences:
65.96 ms | 400 KiB | 5 Q