3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { const BAZ = 42; const AAZ = 24; function bar() { return 'foo.bar'; } function aar() { return 'foo.bar2'; } } namespace { use function foo\bar as foo_bar, foo\aar as foo_bar2; use const foo\BAZ as FOO_BAZ, foo\aar as FOO_BAZ2; var_dump(foo_bar()); var_dump(FOO_BAZ); var_dump(foo_bar2()); var_dump(FOO_BAZ2); }

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.0070.01118.53
8.3.50.0170.01021.96
8.3.40.0090.00618.64
8.3.30.0060.01018.79
8.3.20.0000.00720.38
8.3.10.0080.00023.48
8.3.00.0050.00319.38
8.2.180.0150.00316.38
8.2.170.0140.00422.96
8.2.160.0120.00320.42
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.18
8.2.110.0030.00622.09
8.2.100.0090.00317.77
8.2.90.0090.00017.88
8.2.80.0040.00418.05
8.2.70.0040.00417.80
8.2.60.0040.00418.04
8.2.50.0000.00818.10
8.2.40.0080.00020.18
8.2.30.0040.00417.97
8.2.20.0030.00717.73
8.2.10.0070.00018.01
8.2.00.0090.00017.72
8.1.280.0070.01425.92
8.1.270.0050.00323.97
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.11
8.1.230.0040.00719.16
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0060.00318.57
8.1.160.0040.00422.02
8.1.150.0070.00018.74
8.1.140.0000.00717.30
8.1.130.0000.00917.75
8.1.120.0000.00717.30
8.1.110.0000.00717.42
8.1.100.0040.00417.27
8.1.90.0020.00517.39
8.1.80.0030.00317.45
8.1.70.0000.00717.37
8.1.60.0060.00317.41
8.1.50.0030.00517.36
8.1.40.0040.00417.43
8.1.30.0040.00417.58
8.1.20.0030.00617.65
8.1.10.0070.00017.59
8.1.00.0000.00717.30
8.0.300.0000.01020.09
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0000.00717.27
8.0.260.0000.00617.28
8.0.250.0030.00317.04
8.0.240.0030.00317.09
8.0.230.0030.00316.98
8.0.220.0000.00817.00
8.0.210.0030.00316.85
8.0.200.0060.00017.02
8.0.190.0060.00316.91
8.0.180.0000.00716.83
8.0.170.0000.00816.82
8.0.160.0030.00316.90
8.0.150.0000.00717.00
8.0.140.0040.00416.91
8.0.130.0000.00613.35
8.0.120.0080.00016.81
8.0.110.0000.00716.86
8.0.100.0000.00716.82
8.0.90.0040.00416.82
8.0.80.0040.01116.89
8.0.70.0040.00417.00
8.0.60.0020.00516.78
8.0.50.0080.00017.02
8.0.30.0090.01117.21
8.0.20.0080.01117.40
8.0.10.0000.00716.82
8.0.00.0120.00616.80
7.4.330.0030.00315.00
7.4.320.0030.00316.54
7.4.300.0000.00616.44
7.4.290.0040.00716.59
7.4.280.0000.00716.39
7.4.270.0000.00716.41
7.4.260.0070.00016.44
7.4.250.0000.00716.49
7.4.240.0040.00416.52
7.4.230.0030.00316.44
7.4.220.0090.01516.50
7.4.210.0070.00716.55
7.4.200.0040.00416.25
7.4.160.0090.00616.52
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0070.00916.49
7.4.120.0120.00616.59
7.4.110.0060.01316.48
7.4.100.0110.00716.45
7.4.90.0070.01116.56
7.4.80.0060.01319.39
7.4.70.0080.00816.43
7.4.60.0060.01016.45
7.4.50.0000.00416.36
7.4.40.0060.01216.48
7.4.30.0060.01216.56
7.4.00.0130.00314.99
7.3.330.0050.00013.08
7.3.320.0000.00513.17
7.3.310.0070.00016.16
7.3.300.0040.00416.30
7.3.290.0060.00916.31
7.3.280.0070.01116.29
7.3.270.0130.00617.40
7.3.260.0170.00416.59
7.3.250.0070.00916.53
7.3.240.0220.00016.51
7.3.230.0160.00416.48
7.3.210.0080.00816.36
7.3.200.0140.00819.39
7.3.190.0070.01016.36
7.3.180.0130.00316.42
7.3.170.0060.01116.52
7.3.160.0060.00916.39
7.3.10.0000.01416.29
7.3.00.0060.00316.64
7.2.330.0100.00716.32
7.2.320.0090.00916.75
7.2.310.0060.01316.75
7.2.300.0000.01616.59
7.2.290.0140.00716.54
7.2.130.0070.00716.93
7.2.120.0070.01016.94
7.2.110.0150.00316.73
7.2.100.0070.00716.66
7.2.90.0080.00316.98
7.2.80.0060.00816.81
7.2.70.0060.00616.64
7.2.60.0080.00716.81
7.2.50.0060.01016.96
7.2.40.0150.00016.82
7.2.30.0070.00716.83
7.2.20.0070.00716.91
7.2.10.0090.00916.88
7.2.00.0020.01018.27
7.1.250.0060.00715.45
7.1.240.0030.01015.70
7.1.230.0040.00415.75
7.1.220.0030.00615.74
7.1.210.0090.00315.79
7.1.200.0030.01115.81
7.1.190.0030.00915.73
7.1.180.0050.00515.74
7.1.170.0060.00615.73
7.1.160.0040.00715.95
7.1.150.0090.00615.54
7.1.140.0060.00915.59
7.1.130.0030.01415.86
7.1.120.0090.00615.47
7.1.110.0060.00315.48
7.1.100.0360.00715.73
7.1.90.0070.00315.68
7.1.80.0100.00315.89
7.1.70.0050.00316.35
7.1.60.0090.00917.55
7.1.50.0060.00616.08
7.1.40.0070.00815.68
7.1.30.0100.00315.84
7.1.20.0060.00615.64
7.1.10.0040.01015.81
7.1.00.0050.04219.11
7.0.330.0070.00315.22
7.0.320.0040.00815.42
7.0.310.0030.00715.11
7.0.300.0000.01315.40
7.0.290.0070.00715.50
7.0.280.0030.01015.32
7.0.270.0110.00415.20
7.0.260.0070.00315.48
7.0.250.0070.00715.48
7.0.240.0100.00315.19
7.0.230.0030.00915.13
7.0.220.0030.01015.41
7.0.210.0060.00915.18
7.0.200.0040.00615.95
7.0.190.0090.00015.05
7.0.180.0030.01015.46
7.0.170.0070.00715.30
7.0.160.0030.01015.18
7.0.150.0060.00315.50
7.0.140.0080.04018.68
7.0.130.0030.01015.37
7.0.120.0060.00615.38
7.0.110.0030.00715.41
7.0.100.0040.01115.42
7.0.90.0030.01015.27
7.0.80.0030.01215.23
7.0.70.0090.00315.12
7.0.60.0110.01717.63
7.0.50.0060.03816.59
7.0.40.0060.04116.71
7.0.30.0250.04216.65
7.0.20.0120.04716.84
7.0.10.0080.02516.80
7.0.00.0020.03516.55
5.6.380.0070.00714.28
5.6.370.0060.00314.61
5.6.360.0100.00314.20
5.6.350.0110.00414.23
5.6.340.0060.00314.45
5.6.330.0040.01114.20
5.6.320.0070.00714.02
5.6.310.0000.01014.46
5.6.300.0080.00814.23
5.6.290.0060.00613.84
5.6.280.0070.04017.45
5.6.270.0090.00614.31
5.6.260.0070.01014.26
5.6.250.0030.00614.30
5.6.240.0090.00614.27
5.6.230.0030.01314.16
5.6.220.0120.00314.18
5.6.210.0070.04317.44
5.6.200.0000.04916.33
5.6.190.0060.04617.50
5.6.180.0180.03317.38
5.6.170.0150.03317.23
5.6.160.0070.02417.36
5.6.150.0070.04216.15
5.6.140.0070.03316.24
5.6.130.0070.03816.30
5.6.120.0050.03217.49
5.6.110.0070.04417.67
5.6.100.0030.04617.68
5.6.90.0080.04317.47
5.6.80.0020.02317.31
5.6.70.0030.00714.24
5.6.60.0070.01014.19
5.6.50.0070.00714.26
5.6.40.0040.00713.96
5.6.30.0040.01114.02
5.6.20.0110.00414.29
5.6.10.0110.00414.07
5.6.00.0060.00314.09
5.5.380.0070.00011.17
5.5.370.0060.00610.87
5.5.360.0030.00511.23
5.5.350.0070.02115.76
5.5.340.0050.04214.37
5.5.330.0080.03515.84
5.5.320.0200.04015.63
5.5.310.0180.04615.56
5.5.300.0030.04214.48
5.5.290.0080.04114.50
5.5.280.0020.04215.84
5.5.270.0110.04015.84
5.5.260.0080.04315.96
5.5.250.0110.03515.72
5.5.240.0130.03615.57
5.5.230.0040.00410.86
5.5.220.0030.00310.66
5.5.210.0060.00010.93
5.5.200.0030.00611.04
5.5.190.0000.00710.87
5.5.180.0060.00010.75
5.5.170.0000.00610.95
5.5.160.0060.00010.96
5.5.150.0030.00310.92
5.5.140.0000.01110.88
5.5.130.0100.00010.63
5.5.120.0000.01010.81
5.5.110.0040.00810.90
5.5.100.0060.00611.02
5.5.90.0030.00310.91
5.5.80.0000.01110.98
5.5.70.0090.00311.01
5.5.60.0050.00510.85
5.5.50.0080.00410.76
5.5.40.0030.01010.87
5.5.30.0060.00611.02
5.5.20.0000.00610.95
5.5.10.0030.00710.98
5.5.00.0040.00910.87
5.4.450.0600.03015.24
5.4.440.0460.03015.13
5.4.430.0300.02915.18
5.4.420.0340.00115.24
5.4.410.0370.00015.25
5.4.400.0320.00314.96
5.4.390.0350.00314.92
5.4.380.0330.00514.88
5.4.370.0390.00415.11
5.4.360.0310.00414.83
5.4.350.0360.00014.91
5.4.340.0040.02111.47
5.4.330.0100.00310.93
5.4.320.0050.02411.65
5.4.310.0060.02611.60
5.4.300.0050.02111.67
5.4.290.0060.02311.67
5.4.280.0040.02011.44
5.4.270.0060.01811.61
5.4.260.0040.02311.50
5.4.250.0030.02311.52
5.4.240.0070.02111.64
5.4.230.0060.01911.72
5.4.220.0070.02611.62
5.4.210.0040.02211.53
5.4.200.0060.01811.61
5.4.190.0060.02211.60
5.4.180.0060.02011.53
5.4.170.0050.02311.55
5.4.160.0070.01911.44
5.4.150.0060.02011.51
5.4.140.0070.02111.58
5.4.130.0060.02111.44
5.4.120.0060.02011.46
5.4.110.0050.02011.23
5.4.100.0070.01911.48
5.4.90.0080.02111.37
5.4.80.0040.02311.34
5.4.70.0040.02111.41
5.4.60.0070.01911.50
5.4.50.0070.02711.27
5.4.40.0040.02211.45
5.4.30.0050.02611.30
5.4.20.0070.02211.45
5.4.10.0030.02111.49
5.4.00.0060.01911.18
5.3.290.0060.02211.61
5.3.280.0040.02311.45
5.3.270.0030.02311.51
5.3.260.0050.02311.40
5.3.250.0030.02511.36
5.3.240.0060.02111.44
5.3.230.0030.02411.46
5.3.220.0020.02311.48
5.3.210.0060.02111.35
5.3.200.0070.02011.48
5.3.190.0050.02211.52
5.3.180.0020.02211.58
5.3.170.0060.02211.58
5.3.160.0060.02411.61
5.3.150.0050.02111.47
5.3.140.0100.02311.49
5.3.130.0050.02311.52
5.3.120.0050.02211.54
5.3.110.0050.02211.41
5.3.100.0050.02011.24
5.3.90.0040.02311.24
5.3.80.0060.01911.06
5.3.70.0040.02311.11
5.3.60.0040.02311.21
5.3.50.0030.02211.21
5.3.40.0030.02411.13
5.3.30.0060.02011.13
5.3.20.0040.02011.03
5.3.10.0030.02210.91
5.3.00.0050.02310.88
5.2.170.0020.0199.23
5.2.160.0040.0179.21
5.2.150.0020.0189.26
5.2.140.0040.0209.23
5.2.130.0050.0209.18
5.2.120.0050.0189.17
5.2.110.0040.0179.04
5.2.100.0050.0199.19
5.2.90.0050.0169.19
5.2.80.0060.0169.21
5.2.70.0050.0169.01
5.2.60.0050.0229.07
5.2.50.0060.0199.17
5.2.40.0070.0199.12
5.2.30.0040.0169.08
5.2.20.0040.0188.93
5.2.10.0040.0198.83
5.2.00.0050.0238.75
5.1.60.0030.0148.22
5.1.50.0040.0158.15
5.1.40.0020.0198.16
5.1.30.0050.0178.48
5.1.20.0040.0158.27
5.1.10.0040.0178.31
5.1.00.0030.0168.20
5.0.50.0020.0137.16
5.0.40.0020.0147.09
5.0.30.0040.0176.99
5.0.20.0010.0136.98
5.0.10.0030.0136.97
5.0.00.0020.0176.96
4.4.90.0040.0106.24
4.4.80.0020.0116.23
4.4.70.0020.0116.22
4.4.60.0020.0116.22
4.4.50.0020.0106.23
4.4.40.0020.0196.20
4.4.30.0020.0126.23
4.4.20.0030.0116.27
4.4.10.0030.0106.27
4.4.00.0040.0136.23
4.3.110.0030.0086.18
4.3.100.0040.0126.18
4.3.90.0020.0116.17
4.3.80.0030.0146.14
4.3.70.0010.0126.16
4.3.60.0020.0096.16
4.3.50.0030.0106.16
4.3.40.0030.0146.11
4.3.30.0020.0115.49
4.3.20.0040.0095.48
4.3.10.0040.0085.46
4.3.00.0080.0187.49

preferences:
40.86 ms | 401 KiB | 5 Q