3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = 1; $a = '1'; switch (true) { case $a === FOO: echo '$a === FOO'; break; case $a == FOO: echo '$a == 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.130.0060.00318.40
8.3.120.0080.00819.02
8.3.110.0030.00620.94
8.3.100.0040.00418.34
8.3.90.0130.00726.77
8.3.80.0030.00618.33
8.3.70.0090.00616.75
8.3.60.0040.01118.30
8.3.50.0110.00617.89
8.3.40.0090.00618.67
8.3.30.0150.00018.45
8.3.20.0090.00018.68
8.3.10.0040.00421.11
8.3.00.0080.00023.34
8.2.250.0050.00316.48
8.2.240.0030.00619.10
8.2.230.0030.00722.58
8.2.220.0060.00324.06
8.2.210.0100.00726.77
8.2.200.0050.00518.25
8.2.190.0060.00918.29
8.2.180.0120.00318.28
8.2.170.0090.00622.96
8.2.160.0140.00021.93
8.2.150.0080.00024.18
8.2.140.0020.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00419.83
8.2.110.0060.00319.33
8.2.100.0070.00417.97
8.2.90.0080.00017.72
8.2.80.0050.00317.97
8.2.70.0030.00717.93
8.2.60.0000.00818.22
8.2.50.0000.00918.10
8.2.40.0050.00219.52
8.2.30.0000.00719.50
8.2.20.0000.00718.00
8.2.10.0070.00018.03
8.2.00.0070.00019.43
8.1.300.0110.00817.97
8.1.290.0000.01230.84
8.1.280.0070.01025.92
8.1.270.0080.00022.02
8.1.260.0150.00026.35
8.1.250.0100.00328.09
8.1.240.0100.00317.45
8.1.230.0040.00822.65
8.1.220.0060.00317.74
8.1.210.0040.00419.04
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0000.00818.45
8.1.160.0030.00518.88
8.1.150.0000.00718.94
8.1.140.0070.00017.61
8.1.130.0000.00717.31
8.1.120.0030.00317.34
8.1.110.0070.00017.40
8.1.100.0040.00417.45
8.1.90.0040.00417.35
8.1.80.0040.00417.34
8.1.70.0030.00517.34
8.1.60.0060.00317.45
8.1.50.0080.00017.59
8.1.40.0040.00717.42
8.1.30.0030.00517.63
8.1.20.0040.00417.64
8.1.10.0040.00417.49
8.1.00.0050.00217.38
8.0.300.0000.00719.50
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0000.00916.79
8.0.260.0080.00016.84
8.0.250.0000.00716.86
8.0.240.0000.00716.98
8.0.230.0040.00316.93
8.0.220.0080.00016.94
8.0.210.0000.00716.89
8.0.200.0000.00716.98
8.0.190.0030.00516.81
8.0.180.0040.00416.78
8.0.170.0030.00616.94
8.0.160.0040.00416.98
8.0.150.0040.00416.74
8.0.140.0030.00516.80
8.0.130.0000.00513.34
8.0.120.0000.00716.81
8.0.110.0040.00416.75
8.0.100.0020.00516.87
8.0.90.0040.00416.89
8.0.80.0080.00816.83
8.0.70.0030.00516.68
8.0.60.0040.00416.73
8.0.50.0050.00316.78
8.0.30.0090.01116.99
8.0.20.0110.00817.40
8.0.10.0040.00417.12
8.0.00.0080.00916.79
7.4.330.0030.00315.55
7.4.320.0030.00316.51
7.4.300.0030.00316.48
7.4.290.0050.00216.43
7.4.280.0030.00616.59
7.4.270.0000.00716.59
7.4.260.0070.00016.58
7.4.250.0030.00316.54
7.4.240.0000.00716.56
7.4.230.0070.00016.65
7.4.220.0040.00416.64
7.4.210.0070.00716.66
7.4.200.0030.00316.66
7.4.160.0110.00616.43
7.4.140.0100.00817.86
7.4.130.0140.00316.49
7.4.120.0130.01116.52
7.4.110.0100.00716.50
7.4.100.0170.00316.56
7.4.90.0100.00616.45
7.4.80.0000.01719.39
7.4.70.0130.00916.50
7.4.60.0110.01116.40
7.4.50.0000.01016.29
7.4.40.0100.00716.42
7.4.00.0100.00714.81
7.3.330.0000.00513.22
7.3.320.0000.00613.20
7.3.310.0040.00416.17
7.3.300.0000.00716.32
7.3.290.0040.00416.22
7.3.280.0100.00716.27
7.3.260.0090.01116.30
7.3.240.0090.00916.41
7.3.230.0140.00316.41
7.3.210.0120.00616.25
7.3.200.0060.01016.28
7.3.190.0060.01016.31
7.3.180.0100.00716.26
7.3.170.0030.01316.63
7.3.160.0070.01016.63
7.3.120.0090.01214.91
7.3.110.0060.01214.97
7.3.100.0060.00914.68
7.3.90.0070.01014.48
7.3.80.0060.01014.79
7.3.70.0080.00614.97
7.3.60.0120.00314.65
7.3.50.0090.00614.82
7.3.40.0050.00514.79
7.3.30.0000.01514.51
7.3.20.0060.00916.65
7.3.10.0060.00816.45
7.3.00.0040.00916.55
7.2.330.0060.01116.73
7.2.320.0120.00616.73
7.2.310.0090.00916.62
7.2.300.0120.00916.62
7.2.290.0090.01216.47
7.2.250.0070.01115.20
7.2.240.0150.00415.00
7.2.230.0070.01115.02
7.2.220.0040.00814.66
7.2.210.0110.00315.00
7.2.200.0000.01414.88
7.2.190.0100.00314.64
7.2.180.0070.00315.00
7.2.170.0090.00014.99
7.2.160.0040.01515.14
7.2.150.0000.02016.78
7.2.140.0070.01317.02
7.2.130.0050.01116.57
7.2.120.0050.01016.80
7.2.110.0070.00916.85
7.2.100.0100.00716.82
7.2.90.0080.00816.85
7.2.80.0050.01016.89
7.2.70.0070.00516.72
7.2.60.0060.00916.21
7.2.50.0380.00616.31
7.2.40.0130.00916.50
7.2.30.0320.00616.49
7.2.20.0090.00816.40
7.2.10.0390.00816.50
7.2.00.0080.01016.43
7.1.330.0100.00715.86
7.1.320.0100.00315.63
7.1.310.0100.00615.97
7.1.300.0100.00315.75
7.1.290.0040.00415.94
7.1.280.0070.01015.58
7.1.270.0060.01015.79
7.1.260.0030.01015.94
7.1.250.0060.01015.47
7.1.240.0030.01515.87
7.1.230.0100.00715.89
7.1.220.0060.00615.86
7.1.210.0040.01115.62
7.1.200.0040.01115.79
7.1.190.0030.00615.52
7.1.180.0030.00915.85
7.1.170.0060.00614.77
7.1.160.0980.00516.29
7.1.150.0850.00716.13
7.1.140.0370.00816.28
7.1.130.0110.00816.42
7.1.120.0080.00616.42
7.1.110.0750.00815.86
7.1.100.0750.00816.09
7.1.90.0070.00916.05
7.1.80.0090.00816.00
7.1.70.0390.00615.61
7.1.60.0180.01324.50
7.1.50.0550.01324.55
7.1.40.0160.00924.15
7.1.30.0210.00624.09
7.1.20.0830.01024.05
7.1.10.0090.00815.22
7.1.00.0110.00415.24
7.0.330.0090.00615.33
7.0.320.0040.00815.48
7.0.310.0050.00515.53
7.0.300.0040.00715.36
7.0.290.0040.00415.32
7.0.280.0000.01315.47
7.0.270.0040.00815.55
7.0.260.0090.00315.14
7.0.250.0000.01315.51
7.0.240.0040.00715.40
7.0.230.0000.01315.16
7.0.220.0110.00315.39
7.0.210.0000.00915.53
7.0.200.0080.00615.40
7.0.190.0040.01115.56
7.0.180.0000.01015.59
7.0.170.0100.00615.49
7.0.160.0000.01315.08
7.0.150.0070.00315.30
7.0.140.0060.00315.47
7.0.130.0040.00815.42
7.0.120.0060.01015.39
7.0.110.0070.01015.35
7.0.100.0040.00415.39
7.0.90.0000.01015.32
7.0.80.0000.01215.18
7.0.70.0030.00615.60
7.0.60.0080.00415.17
7.0.50.0060.00615.46
7.0.40.0040.00813.46
7.0.30.0060.00313.52
7.0.20.0030.01613.38
7.0.10.0070.01013.27
7.0.00.0000.01413.55
5.6.400.0060.00814.50
5.6.390.0060.01214.45
5.6.380.0040.01114.30
5.6.370.0060.01214.46
5.6.360.0070.00714.54
5.6.350.0080.00014.18
5.6.340.0090.00614.22
5.6.330.0120.00314.27
5.6.320.0090.00914.50
5.6.310.0090.00914.50
5.6.300.0060.01014.47
5.6.290.0070.00314.16
5.6.280.0040.01114.11
5.6.270.0040.01214.33
5.6.260.0100.00714.34
5.6.250.0110.00014.33
5.6.240.0100.00014.40
5.6.230.0100.00614.35
5.6.220.0030.01414.30
5.6.210.0060.00614.23
5.6.200.0070.00714.05
5.6.190.0000.01414.23
5.6.180.0030.00614.06
5.6.170.0030.01314.63
5.6.160.0070.01014.38
5.6.150.0060.00914.06
5.6.140.0060.00614.32
5.6.130.0000.01014.54
5.6.120.0000.01014.25
5.6.110.0060.00314.33
5.6.100.0040.01114.54
5.6.90.0110.00314.39
5.6.80.0000.01014.34
5.6.70.0060.00314.16
5.6.60.0070.00714.20
5.6.50.0040.01414.31
5.6.40.0040.01114.17
5.6.30.0000.01414.36
5.6.20.0060.00814.09
5.6.10.0060.01314.28
5.6.00.0140.00014.14

preferences:
32.32 ms | 403 KiB | 5 Q