3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Xyz {} function abc () {} } namespace bar { use foo\Xyz; use foo\abc; function abc() { echo 'asdf'; } var_dump(new Xyz()); // instantiates \foo\Xyz var_dump(abc()); var_dump(\foo\abc()); // it has to be invoked using the fully qualified name } ?>

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.40.0110.00418.67
8.3.30.0070.01120.34
8.3.20.0050.00322.04
8.3.10.0060.00321.92
8.3.00.0060.00322.27
8.2.170.0120.00322.96
8.2.160.0070.01018.63
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0000.01420.62
8.2.110.0060.00320.27
8.2.100.0040.00817.59
8.2.90.0060.00319.23
8.2.80.0000.00819.12
8.2.70.0080.00017.50
8.2.60.0030.00617.91
8.2.50.0040.00418.07
8.2.40.0040.00417.84
8.2.30.0060.00319.32
8.2.20.0030.00517.55
8.2.10.0000.00817.65
8.2.00.0000.00717.55
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.85
8.1.230.0040.00722.80
8.1.220.0050.00318.44
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0060.00317.43
8.1.180.0080.00018.10
8.1.170.0040.00418.52
8.1.160.0040.00418.84
8.1.150.0040.00418.52
8.1.140.0060.00317.30
8.1.130.0000.00717.78
8.1.120.0050.00317.39
8.1.110.0000.00717.27
8.1.100.0040.00417.34
8.1.90.0050.00217.25
8.1.80.0030.00617.34
8.1.70.0030.00317.27
8.1.60.0050.00317.44
8.1.50.0070.00017.47
8.1.40.0000.00717.38
8.1.30.0030.00517.47
8.1.20.0030.00617.57
8.1.10.0000.00717.45
8.1.00.0060.00317.39
8.0.300.0070.00018.77
8.0.290.0040.00417.18
8.0.280.0030.00318.34
8.0.270.0050.00317.18
8.0.260.0000.00616.74
8.0.250.0030.00316.80
8.0.240.0030.00716.90
8.0.230.0030.00316.89
8.0.220.0030.00316.85
8.0.210.0070.00016.66
8.0.200.0000.00616.90
8.0.190.0040.00416.85
8.0.180.0000.00716.79
8.0.170.0060.00316.73
8.0.160.0040.00416.76
8.0.150.0000.00716.80
8.0.140.0050.00616.80
8.0.130.0000.00613.21
8.0.120.0000.00816.68
8.0.110.0050.00216.77
8.0.100.0050.00216.76
8.0.90.0030.00316.57
8.0.80.0120.00316.69
8.0.70.0040.00416.85
8.0.60.0040.00416.84
8.0.50.0030.00516.77
8.0.30.0130.00617.24
8.0.20.0110.00717.40
8.0.10.0040.00416.95
8.0.00.0080.01416.76
7.4.330.0050.00016.84
7.4.320.0040.00416.40
7.4.300.0060.00016.59
7.4.290.0000.00716.52
7.4.280.0040.00416.34
7.4.270.0070.00016.54
7.4.260.0030.00313.29
7.4.250.0000.00716.43
7.4.240.0050.00216.48
7.4.230.0040.00416.57
7.4.220.0100.00716.65
7.4.210.0080.00716.55
7.4.200.0000.00716.46
7.4.190.0000.00716.60
7.4.160.0100.01016.63
7.4.150.0040.01317.40
7.4.140.0090.00917.86
7.4.130.0100.00616.48
7.4.120.0100.00816.46
7.4.110.0100.00616.43
7.4.100.0030.01416.38
7.4.90.0070.01016.31
7.4.80.0030.01519.39
7.4.70.0120.00916.42
7.4.60.0150.00416.42
7.4.50.0000.00816.61
7.4.40.0030.01322.77
7.4.30.0170.00316.32
7.4.10.0090.01214.80
7.4.00.0080.00714.91
7.3.330.0000.00513.25
7.3.320.0000.00513.23
7.3.310.0000.00616.24
7.3.300.0030.00316.09
7.3.290.0060.00916.25
7.3.280.0050.01116.20
7.3.270.0070.01017.40
7.3.260.0090.00916.10
7.3.250.0110.00916.48
7.3.240.0100.00516.42
7.3.230.0130.00316.39
7.3.210.0110.00716.44
7.3.200.0100.01319.39
7.3.190.0120.00616.27
7.3.180.0100.00716.52
7.3.170.0100.01016.30
7.3.160.0000.01716.41
7.3.130.0070.01114.61
7.3.120.0080.00714.73
7.3.110.0030.01314.75
7.3.100.0040.01214.98
7.3.90.0070.01114.89
7.3.80.0060.00615.07
7.3.70.0060.00614.73
7.3.60.0030.01014.85
7.3.50.0060.00314.82
7.3.40.0110.00414.67
7.3.30.0070.00714.81
7.3.20.0050.00516.35
7.3.10.0040.00416.68
7.3.00.0040.01116.47
7.2.330.0140.00316.58
7.2.320.0030.01416.34
7.2.310.0090.00916.68
7.2.300.0120.00916.35
7.2.290.0090.01316.34
7.2.260.0100.01014.91
7.2.250.0100.01015.11
7.2.240.0000.01414.82
7.2.230.0030.01215.12
7.2.220.0060.00914.79
7.2.210.0060.00914.81
7.2.200.0070.01014.84
7.2.190.0000.01314.89
7.2.180.0080.00815.09
7.2.170.0030.00914.95
7.2.160.0130.00314.66
7.2.150.0070.01116.93
7.2.140.0030.00716.59
7.2.130.0070.00316.59
7.2.120.0110.00316.71
7.2.110.0040.00816.49
7.2.100.0030.00816.64
7.2.90.0080.00817.04
7.2.80.0130.00316.86
7.2.70.0110.00316.66
7.2.60.0070.00716.75
7.2.50.0080.00316.77
7.2.40.0000.01416.87
7.2.30.0070.00716.89
7.2.20.0070.00717.00
7.2.10.0040.01116.61
7.2.00.0040.00917.96
7.1.330.0100.00315.65
7.1.320.0030.00715.66
7.1.310.0100.00315.22
7.1.300.0060.00815.75
7.1.290.0000.01515.52
7.1.280.0040.00415.67
7.1.270.0060.00615.66
7.1.260.0040.01115.79
7.1.250.0060.00315.45
7.1.240.0070.00715.27
7.1.230.0100.00315.44
7.1.220.0060.00315.75
7.1.210.0060.00615.61
7.1.200.0030.00915.60
7.1.190.0050.00515.45
7.1.180.0050.00515.53
7.1.170.0090.00315.53
7.1.160.0030.00915.53
7.1.150.0070.00315.56
7.1.140.0050.00515.79
7.1.130.0030.00715.73
7.1.120.0030.01015.65
7.1.110.0030.00915.73
7.1.100.0090.00316.80
7.1.90.0030.01015.36
7.1.80.0040.01115.55
7.1.70.0060.00516.29
7.1.60.0090.00917.26
7.1.50.0070.01216.09
7.1.40.0060.00615.38
7.1.30.0090.00615.59
7.1.20.0070.00715.53
7.1.10.0000.00915.53
7.1.00.0090.01618.99
7.0.330.0030.00915.35
7.0.320.0070.00315.25
7.0.310.0000.01115.49
7.0.300.0100.00315.20
7.0.290.0000.00815.03
7.0.280.0060.00615.03
7.0.270.0030.01315.39
7.0.260.0030.00715.27
7.0.250.0080.00415.32
7.0.240.0040.00815.44
7.0.230.0070.01115.05
7.0.220.0000.01415.27
7.0.210.0030.01315.32
7.0.200.0010.00716.01
7.0.190.0060.00315.38
7.0.180.0030.00715.30
7.0.170.0090.00615.38
7.0.160.0040.00414.93
7.0.150.0000.01315.11
7.0.140.0000.04418.74
7.0.130.0090.00615.54
7.0.120.0070.00715.28
7.0.110.0000.01015.31
7.0.100.0080.04217.52
7.0.90.0250.02717.40
7.0.80.0200.04217.63
7.0.70.0240.03517.70
7.0.60.0230.03817.71
7.0.50.0250.03517.67
7.0.40.0100.03816.77
7.0.30.0060.04616.74
7.0.20.0050.04116.67
7.0.10.0100.04016.69
7.0.00.0150.03816.59
5.6.400.0040.00814.15
5.6.390.0090.00314.28
5.6.380.0070.00714.36
5.6.370.0000.01314.20
5.6.360.0120.00314.12
5.6.350.0040.00814.02
5.6.340.0060.00314.21
5.6.330.0030.00913.95
5.6.320.0000.01113.80
5.6.310.0060.00613.87
5.6.300.0110.00013.99
5.6.290.0000.01413.88
5.6.280.0030.04117.64
5.6.270.0150.00314.11
5.6.260.0030.01314.11
5.6.250.0070.04417.45
5.6.240.0050.03917.34
5.6.230.0080.04517.55
5.6.220.0100.04317.40
5.6.210.0080.04317.49
5.6.200.0100.03217.78
5.6.190.0080.04017.51
5.6.180.0030.03417.55
5.6.170.0120.04217.64
5.6.160.0120.03717.65
5.6.150.0050.04517.54
5.6.140.0070.04117.57
5.6.130.0120.04317.59
5.6.120.0100.04517.53
5.6.110.0020.05117.65
5.6.100.0050.04617.63
5.6.90.0070.04517.51
5.6.80.0080.03617.25
5.6.70.0110.03717.21
5.6.60.0120.03517.30
5.6.50.0050.03617.21
5.6.40.0070.04617.32
5.6.30.0070.04717.32
5.6.20.0070.04217.31
5.6.10.0160.03817.19
5.6.00.0040.04417.21
5.5.380.0100.04017.21
5.5.370.0100.04017.24
5.5.360.0090.03517.21
5.5.350.0140.03717.26
5.5.340.0050.03317.47
5.5.330.0110.04317.56
5.5.320.0080.04317.60
5.5.310.0090.04017.50
5.5.300.0100.04517.54
5.5.290.0100.04517.27
5.5.280.0050.04017.22
5.5.270.0080.02517.56
5.5.260.0080.04317.61
5.5.250.0080.03317.21
5.5.240.0070.04716.98
5.5.230.0050.04417.13
5.5.220.0110.03817.15
5.5.210.0080.04017.15
5.5.200.0030.04317.24
5.5.190.0080.03817.07
5.5.180.0100.04117.17
5.5.170.0100.00314.26
5.5.160.0030.04117.15
5.5.150.0090.04216.92
5.5.140.0060.03817.10
5.5.130.0100.03717.24
5.5.120.0100.03517.20
5.5.110.0050.04817.01
5.5.100.0020.04516.96
5.5.90.0090.03717.05
5.5.80.0090.04016.99
5.5.70.0050.04316.88
5.5.60.0050.04516.91
5.5.50.0080.02717.02
5.5.40.0050.04916.98
5.5.30.0030.04617.21
5.5.20.0070.02817.07
5.5.10.0100.03817.06
5.5.00.0090.04117.17
5.4.450.0090.03815.12
5.4.440.0100.03715.21
5.4.430.0070.03715.23
5.4.420.0080.03515.25
5.4.410.0050.04615.21
5.4.400.0050.04414.93
5.4.390.0040.04215.01
5.4.380.0060.04115.13
5.4.370.0030.04515.08
5.4.360.0050.04115.08
5.4.350.0100.03815.02
5.4.340.0050.03814.89
5.4.330.0000.01011.16
5.4.320.0100.04014.96
5.4.310.0070.04014.99
5.4.300.0070.03814.89
5.4.290.0020.04415.14
5.4.280.0050.04314.73
5.4.270.0050.02714.98
5.4.260.0120.03814.95
5.4.250.0070.03815.02
5.4.240.0060.04315.04
5.4.230.0090.03815.04
5.4.220.0030.04314.94
5.4.210.0100.03714.85
5.4.200.0080.03814.88
5.4.190.0080.04015.04
5.4.180.0100.03814.85
5.4.170.0070.04114.99
5.4.160.0050.03014.91
5.4.150.0110.03815.10
5.4.140.0050.03713.56
5.4.130.0100.04013.53
5.4.120.0070.03513.56
5.4.110.0050.03813.61
5.4.100.0050.03813.57
5.4.90.0070.03213.72
5.4.80.0070.03713.69
5.4.70.0060.04013.77
5.4.60.0050.03813.66
5.4.50.0080.03613.68
5.4.40.0070.03913.58
5.4.30.0110.03113.73
5.4.20.0060.03713.62
5.4.10.0070.03113.78
5.4.00.0070.03613.31
5.3.290.0060.03612.71
5.3.280.0050.04312.48
5.3.270.0100.03712.64
5.3.260.0080.02312.39
5.3.250.0040.03912.62
5.3.240.0030.04212.44
5.3.230.0090.03212.55
5.3.220.0070.04112.51
5.3.210.0100.03512.48
5.3.200.0070.03712.51
5.3.190.0090.03512.55
5.3.180.0050.02912.49
5.3.170.0050.04012.47
5.3.160.0020.04412.52
5.3.150.0060.03812.60
5.3.140.0050.03812.59
5.3.130.0030.04012.55
5.3.120.0090.03612.47
5.3.110.0120.04012.53
5.3.100.0030.03812.36
5.3.90.0060.03912.29
5.3.80.0050.03912.26
5.3.70.0060.03512.28
5.3.60.0040.03812.26
5.3.50.0060.04012.00
5.3.40.0020.04012.25
5.3.30.0080.03812.17
5.3.20.0070.03512.13
5.3.10.0060.03812.00
5.3.00.0020.03211.93
5.2.170.0130.05711.08
5.2.160.0030.06311.09
5.2.150.0100.05710.94
5.2.140.0100.05311.00
5.2.130.0100.05711.06
5.2.120.0000.06311.13
5.2.110.0030.06311.10
5.2.100.0030.06311.14
5.2.90.0070.06311.09
5.2.80.0030.05311.08
5.2.70.0030.05310.89
5.2.60.0130.05311.11
5.2.50.0030.06710.84
5.2.40.0000.06310.99
5.2.30.0030.06010.79
5.2.20.0070.05011.00
5.2.10.0030.05710.77
5.2.00.0000.05710.76
5.1.60.0070.04710.04
5.1.50.0030.0539.84
5.1.40.0100.0339.98
5.1.30.0070.05310.36
5.1.20.0030.05710.35
5.1.10.0030.05010.07
5.1.00.0100.02010.12
5.0.50.0000.0239.78
5.0.40.0000.0239.78
5.0.30.0000.0379.78
5.0.20.0030.0179.78
5.0.10.0030.0209.78
5.0.00.0000.0339.78
4.4.90.0030.0309.78
4.4.80.0130.0279.78
4.4.70.0000.0279.78
4.4.60.0030.0339.78
4.4.50.0000.0379.78
4.4.40.0000.0379.78
4.4.30.0070.0309.78
4.4.20.0030.0339.78
4.4.10.0000.0179.78
4.4.00.0030.0279.78
4.3.110.0030.0179.78
4.3.100.0070.0109.78
4.3.90.0130.0179.78
4.3.80.0000.0239.78
4.3.70.0000.0179.78
4.3.60.0070.0179.78
4.3.50.0030.0139.78
4.3.40.0000.0239.78
4.3.30.0030.0139.78
4.3.20.0000.0179.78
4.3.10.0030.0139.78
4.3.00.0000.0139.78

preferences:
63.94 ms | 400 KiB | 5 Q