3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Demo { protected static function de($token) { if ($token == 'sd') { return 42; } return $token; } }

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.0090.00616.25
8.3.50.0120.00717.13
8.3.40.0130.00718.48
8.3.30.0030.01318.46
8.3.20.0040.00418.62
8.3.10.0080.00018.43
8.3.00.0080.00019.13
8.2.180.0160.00018.29
8.2.170.0000.01422.96
8.2.160.0100.00718.70
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.73
8.2.110.0100.00020.84
8.2.100.0000.01217.54
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0090.00017.90
8.2.50.0030.00618.10
8.2.40.0090.00018.05
8.2.30.0060.00318.00
8.2.20.0030.00617.48
8.2.10.0070.00017.55
8.2.00.0030.00517.58
8.1.280.0110.00325.92
8.1.270.0070.00023.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00323.88
8.1.230.0080.00317.71
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.82
8.1.160.0040.00418.75
8.1.150.0000.00718.41
8.1.140.0000.00917.31
8.1.130.0000.00717.86
8.1.120.0030.00417.35
8.1.110.0080.00017.36
8.1.100.0000.00717.29
8.1.90.0050.00217.21
8.1.80.0040.00317.30
8.1.70.0000.00717.34
8.1.60.0000.00817.45
8.1.50.0040.00417.21
8.1.40.0050.00317.39
8.1.30.0000.00817.52
8.1.20.0030.00617.52
8.1.10.0050.00317.41
8.1.00.0040.00417.33
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.21
8.0.270.0030.00516.99
8.0.260.0030.00318.21
8.0.250.0050.00216.79
8.0.240.0070.00016.82
8.0.230.0050.00316.80
8.0.220.0040.00416.64
8.0.210.0040.00416.73
8.0.200.0030.00316.78
8.0.190.0000.00716.83
8.0.180.0000.00816.68
8.0.170.0060.00316.63
8.0.160.0000.00716.73
8.0.150.0060.00316.68
8.0.140.0000.00816.66
8.0.130.0030.00313.17
8.0.120.0040.00416.71
8.0.110.0030.00316.78
8.0.100.0070.00016.77
8.0.90.0040.00416.64
8.0.80.0060.01116.78
8.0.70.0000.00716.65
8.0.60.0070.00016.76
8.0.50.0000.00716.73
8.0.30.0070.01016.93
8.0.20.0110.00716.79
8.0.10.0030.00316.86
8.0.00.0090.01016.53
7.4.330.0000.00512.87
7.4.320.0000.00716.48
7.4.300.0000.00616.35
7.4.290.0000.00716.46
7.4.280.0000.00916.37
7.4.270.0040.00416.29
7.4.260.0030.00213.07
7.4.250.0030.00516.25
7.4.240.0030.00316.42
7.4.230.0030.00316.39
7.4.220.0110.01116.45
7.4.210.0070.01416.50
7.4.200.0040.00416.20
7.4.190.0030.00516.23
7.4.160.0130.01016.15
7.4.150.0120.00616.31
7.4.140.0070.01016.31
7.4.130.0120.00416.26
7.4.120.0070.01116.07
7.4.110.0090.00916.52
7.4.100.0070.01016.34
7.4.90.0140.00316.38
7.4.80.0100.01019.39
7.4.70.0070.01016.50
7.4.60.0100.00716.26
7.4.50.0030.00616.18
7.4.40.0110.00416.50
7.4.30.0120.00416.28
7.4.00.0030.01314.72
7.3.330.0030.00313.18
7.3.320.0070.00013.02
7.3.310.0000.00716.07
7.3.300.0000.00616.18
7.3.290.0080.00916.17
7.3.280.0120.00516.13
7.3.270.0100.00716.07
7.3.260.0140.00916.31
7.3.250.0110.00716.29
7.3.240.0110.00516.32
7.3.230.0070.01016.37
7.3.210.0170.00316.31
7.3.200.0120.00316.46
7.3.190.0040.01216.21
7.3.180.0070.01016.16
7.3.170.0080.00816.19
7.3.160.0090.00616.14
7.3.120.0100.00714.79
7.3.110.0110.00714.92
7.3.100.0120.00014.73
7.3.90.0110.00714.63
7.3.80.0040.00814.64
7.3.70.0100.00314.53
7.3.60.0170.00014.64
7.3.50.0090.00314.86
7.3.40.0120.00314.70
7.3.30.0040.00414.81
7.3.20.0060.00616.43
7.3.10.0100.00316.55
7.3.00.0070.01116.31
7.2.330.0160.00616.29
7.2.320.0100.00716.51
7.2.310.0140.00316.48
7.2.300.0120.00616.25
7.2.290.0090.01216.18
7.2.240.0180.00314.54
7.2.230.0100.00714.66
7.2.220.0110.00614.77
7.2.210.0040.01114.94
7.2.200.0030.01014.80
7.2.190.0030.01014.69
7.2.180.0090.00314.82
7.2.170.0080.00614.77
7.2.160.0140.00014.75
7.2.150.0070.01116.81
7.2.140.0090.01016.36
7.2.130.0080.01116.61
7.2.120.0070.00416.76
7.2.110.0070.00416.85
7.2.100.0030.01316.53
7.2.90.0100.00716.84
7.2.80.0110.00316.51
7.2.70.0040.00816.51
7.2.60.0080.00816.57
7.2.50.0120.00316.58
7.2.40.0070.01016.80
7.2.30.0070.01016.73
7.2.20.0070.01016.65
7.2.10.0060.00616.57
7.2.00.0030.00917.69
7.1.330.0080.00915.46
7.1.320.0000.01115.62
7.1.310.0000.01515.25
7.1.300.0060.00315.64
7.1.290.0030.01015.77
7.1.280.0030.01015.68
7.1.270.0110.00315.64
7.1.260.0090.00615.68
7.1.250.0100.00315.65
7.1.200.0100.00315.75
7.1.100.0070.00717.89
7.1.70.0030.00716.68
7.1.60.0090.01519.30
7.1.50.0070.01416.52
7.1.00.0030.04322.28
7.0.200.0060.00616.73
7.0.140.0030.07322.08
7.0.120.0100.07022.12
7.0.60.0100.08020.00
7.0.50.0030.05717.81
7.0.40.0070.04020.23
7.0.30.0230.08320.08
7.0.20.0070.05020.30
7.0.10.0070.04020.12
7.0.00.0100.08720.22
5.6.280.0000.07720.93
5.6.210.0100.06720.71
5.6.200.0070.08718.19
5.6.190.0100.08320.48
5.6.180.0130.05720.57
5.6.170.0200.04020.45
5.6.160.0130.07020.52
5.6.150.0030.04018.29
5.6.140.0130.07718.23
5.6.130.0030.08718.29
5.6.120.0030.07020.90
5.6.110.0070.04021.11
5.6.100.0070.05720.96
5.6.90.0030.05721.02
5.6.80.0030.04020.50
5.5.350.0030.08320.38
5.5.340.0030.08717.96
5.5.330.0130.07320.37
5.5.320.0300.08320.34
5.5.310.0230.06020.18
5.5.300.0000.06017.95
5.5.290.0030.08717.98
5.5.280.0100.05320.66
5.5.270.0070.08720.87
5.5.260.0170.07720.76
5.5.250.0070.03720.71
5.5.240.0230.08020.03
5.4.450.0100.07319.18
5.4.440.0070.04019.24
5.4.430.0130.07719.57
5.4.420.0000.08319.55
5.4.410.0030.04719.12
5.4.400.0100.06319.15
5.4.390.0070.06019.25
5.4.380.0030.04719.20
5.4.370.0030.08319.15
5.4.360.0030.04019.21
5.4.350.0130.06319.21
5.4.340.0070.07018.87
5.4.320.0170.07018.93
5.4.310.0100.03719.20
5.4.300.0100.06719.28
5.4.290.0100.07318.85
5.4.280.0070.04319.14
5.4.270.0070.04719.28
5.4.260.0130.04319.14
5.4.250.0100.03719.15
5.4.240.0000.04719.11
5.4.230.0000.05019.14
5.4.220.0100.04318.86
5.4.210.0030.05019.23
5.4.200.0100.06319.23
5.4.190.0070.04718.99
5.4.180.0100.07319.23
5.4.170.0130.07318.84
5.4.160.0130.07319.21
5.4.150.0070.08018.98
5.4.140.0070.04316.40
5.4.130.0130.06316.37
5.4.120.0000.07716.41
5.4.110.0070.07316.30
5.4.100.0030.06016.41
5.4.90.0030.08016.42
5.4.80.0130.06316.41
5.4.70.0100.07316.52
5.4.60.0100.07316.46
5.4.50.0070.04016.25
5.4.40.0100.07316.52
5.4.30.0030.05316.36
5.4.20.0130.04016.64
5.4.10.0030.03716.27
5.4.00.0030.07015.86
5.3.290.0030.07314.82
5.3.280.0170.03314.60
5.3.270.0100.04314.60
5.3.260.0030.06014.67
5.3.250.0030.05314.59
5.3.240.0100.05014.61
5.3.230.0070.06714.62
5.3.220.0070.07714.62
5.3.210.0070.07714.46
5.3.200.0030.08014.45
5.3.190.0100.07714.55
5.3.180.0130.06714.61
5.3.170.0100.06014.45
5.3.160.0100.04714.59
5.3.150.0070.07314.56
5.3.140.0030.07014.73
5.3.130.0100.08014.56
5.3.120.0070.05314.59
5.3.110.0030.04014.57
5.3.100.0070.06314.03
5.3.90.0100.04314.07
5.3.80.0070.03714.02
5.3.70.0100.07013.93
5.3.60.0170.04314.02
5.3.50.0030.04313.99
5.3.40.0070.07313.99
5.3.30.0030.07713.82
5.3.20.0030.04313.71
5.3.10.0100.03013.64
5.3.00.0000.04013.65
5.2.170.0070.05711.11
5.2.160.0000.06011.30
5.2.150.0100.05311.14
5.2.140.0100.05011.11
5.2.130.0030.03011.03
5.2.120.0100.03011.10
5.2.110.0000.03011.08
5.2.100.0030.04011.09
5.2.90.0000.03311.13
5.2.80.0000.03311.16
5.2.70.0100.06011.12
5.2.60.0030.03311.05
5.2.50.0100.04710.96
5.2.40.0100.04310.88
5.2.30.0100.04310.93
5.2.20.0100.06010.91
5.2.10.0000.03710.85
5.2.00.0030.02710.78
5.1.60.0100.04710.04
5.1.50.0100.0439.96
5.1.40.0070.0509.94
5.1.30.0070.04710.38
5.1.20.0030.03710.39
5.1.10.0000.03310.12
5.1.00.0000.06010.21
5.0.50.0000.0308.60
5.0.40.0030.0178.31
5.0.30.0030.0308.36
5.0.20.0070.0408.17
5.0.10.0070.0238.23
5.0.00.0030.0378.11
4.4.90.0000.0378.06
4.4.80.0000.0408.06
4.4.70.0000.0308.06
4.4.60.0100.0308.06
4.4.50.0100.0207.98
4.4.40.0000.0437.98
4.4.30.0000.0277.98
4.4.20.0000.0207.98
4.4.10.0000.0307.98
4.4.00.0000.0507.98
4.3.110.0000.0177.98
4.3.100.0070.0107.98
4.3.90.0070.0307.98
4.3.80.0030.0407.98
4.3.70.0000.0377.98
4.3.60.0070.0207.98
4.3.50.0000.0237.98
4.3.40.0000.0377.98
4.3.30.0000.0277.98
4.3.20.0000.0207.98
4.3.10.0000.0337.98
4.3.00.0000.0377.98

preferences:
52.78 ms | 401 KiB | 5 Q