3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ const FOO = 'hello world!'; public function hello($string = Foo::FOO) { echo $string . "\n"; } } hello(); hello('hi!');

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.0060.00918.79
8.3.30.0120.00318.76
8.3.20.0040.00420.31
8.3.10.0080.00023.60
8.3.00.0050.00323.48
8.2.170.0040.01122.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00819.71
8.2.120.0080.00026.35
8.2.110.0070.00421.13
8.2.100.0060.00617.80
8.2.90.0000.00719.08
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0080.00017.93
8.2.50.0000.01118.07
8.2.40.0050.00322.18
8.2.30.0000.00819.42
8.2.20.0040.00417.61
8.2.10.0000.00718.04
8.2.00.0000.00717.92
8.1.270.0080.00023.96
8.1.260.0030.00628.09
8.1.250.0000.00828.09
8.1.240.0060.00323.79
8.1.230.0090.00318.99
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0040.00817.13
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0040.00420.57
8.1.150.0080.00018.79
8.1.140.0080.00319.43
8.1.130.0000.00717.57
8.1.120.0030.00417.34
8.1.110.0000.00817.41
8.1.100.0040.00417.34
8.1.90.0040.00417.24
8.1.80.0000.00717.22
8.1.70.0030.00317.25
8.1.60.0080.00017.33
8.1.50.0040.00417.35
8.1.40.0080.00017.37
8.1.30.0030.00517.60
8.1.20.0000.00717.45
8.1.10.0040.00417.45
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0070.00018.37
8.0.270.0050.00317.18
8.0.260.0050.00217.21
8.0.250.0030.00316.97
8.0.240.0030.00516.98
8.0.230.0020.00516.91
8.0.220.0070.00016.77
8.0.210.0000.00716.95
8.0.200.0030.00616.89
8.0.190.0050.00316.85
8.0.180.0000.00716.79
8.0.170.0030.00516.87
8.0.160.0070.00016.90
8.0.150.0040.00416.84
8.0.140.0000.00716.82
8.0.130.0000.00713.36
8.0.120.0030.00616.84
8.0.110.0040.00416.79
8.0.100.0000.00816.82
8.0.90.0040.00416.70
8.0.80.0090.01216.91
8.0.70.0040.00416.88
8.0.60.0000.00716.95
8.0.50.0070.00016.87
8.0.30.0100.00817.06
8.0.20.0090.01117.40
8.0.10.0040.00416.75
8.0.00.0100.00816.64
7.4.330.0050.00016.74
7.4.320.0030.00316.35
7.4.300.0000.00616.58
7.4.290.0030.00316.57
7.4.280.0030.00616.46
7.4.270.0030.00316.43
7.4.260.0000.00716.50
7.4.250.0040.00416.43
7.4.240.0020.00616.44
7.4.230.0040.00416.41
7.4.220.0060.01316.53
7.4.210.0090.00616.54
7.4.200.0030.00316.34
7.4.160.0060.00816.45
7.4.150.0080.01117.40
7.4.140.0110.00817.86
7.4.130.0070.01016.38
7.4.120.0080.01316.29
7.4.110.0000.01716.31
7.4.100.0090.01016.41
7.4.90.0030.01516.54
7.4.80.0130.01019.39
7.4.70.0030.01416.37
7.4.60.0100.01016.45
7.4.50.0090.00616.32
7.4.40.0130.00616.21
7.4.30.0080.00816.35
7.4.10.0060.01315.09
7.4.00.0060.01114.97
7.3.330.0030.00313.30
7.3.320.0000.00513.16
7.3.310.0000.00716.24
7.3.300.0060.00016.25
7.3.290.0080.00016.30
7.3.280.0100.00816.31
7.3.270.0080.01117.40
7.3.260.0130.01016.53
7.3.250.0090.00916.35
7.3.240.0080.00816.30
7.3.230.0110.00616.53
7.3.210.0100.00616.30
7.3.200.0100.00719.39
7.3.190.0030.01916.38
7.3.180.0120.00316.24
7.3.170.0060.01616.41
7.3.160.0090.00616.65
7.3.130.0060.00914.55
7.3.120.0090.00914.66
7.3.110.0110.00714.91
7.3.100.0030.01014.68
7.3.90.0070.00714.76
7.3.80.0040.01214.61
7.3.70.0040.00714.80
7.3.60.0040.01114.78
7.3.50.0070.01014.88
7.3.40.0030.01214.76
7.3.30.0040.00714.32
7.3.20.0080.00416.82
7.3.10.0060.00616.51
7.3.00.0060.00916.70
7.2.330.0170.00016.60
7.2.320.0090.01316.55
7.2.310.0180.00016.51
7.2.300.0110.00916.45
7.2.290.0120.00916.40
7.2.260.0000.01715.08
7.2.250.0100.00314.82
7.2.240.0120.00314.66
7.2.230.0000.01614.57
7.2.220.0070.00714.93
7.2.210.0030.01014.88
7.2.200.0040.01115.00
7.2.190.0110.00614.65
7.2.180.0080.00814.61
7.2.170.0070.00714.90
7.2.160.0030.01315.07
7.2.150.0030.01016.86
7.2.140.0000.01516.86
7.2.130.0070.01016.82
7.2.120.0080.00416.76
7.2.110.0000.00916.49
7.2.100.0060.00916.42
7.2.90.0030.01216.90
7.2.80.0060.00916.78
7.2.70.0080.00816.86
7.2.60.0110.00416.52
7.2.50.0040.00716.89
7.2.40.0090.00616.88
7.2.30.0060.00916.79
7.2.20.0040.01116.73
7.2.10.0060.00616.79
7.2.00.0030.01218.00
7.1.330.0090.00615.46
7.1.320.0060.00615.56
7.1.310.0110.00815.37
7.1.300.0000.01315.64
7.1.290.0000.01315.71
7.1.280.0070.00715.56
7.1.270.0040.00815.67
7.1.260.0130.00315.21
7.1.250.0040.01115.70
7.1.240.0080.00415.77
7.1.230.0060.01015.47
7.1.220.0070.00715.64
7.1.210.0000.01315.61
7.1.200.0050.00715.59
7.1.190.0070.00715.68
7.1.180.0090.00015.50
7.1.170.0040.00815.59
7.1.160.0000.00815.82
7.1.150.0030.00715.77
7.1.140.0050.00515.75
7.1.130.0030.00915.66
7.1.120.0000.01615.48
7.1.110.0030.01015.45
7.1.100.0050.00816.77
7.1.90.0070.00715.74
7.1.80.0040.01115.62
7.1.70.0070.00516.29
7.1.60.0050.01217.53
7.1.50.0070.00616.25
7.1.40.0100.00015.58
7.1.30.0040.01115.59
7.1.20.0070.00715.52
7.1.10.0090.00615.36
7.1.00.0000.04518.99
7.0.330.0000.01215.27
7.0.320.0050.00515.25
7.0.310.0030.00815.36
7.0.300.0070.00715.29
7.0.290.0000.01014.93
7.0.280.0090.00315.23
7.0.270.0100.00315.05
7.0.260.0100.00315.24
7.0.250.0030.00715.20
7.0.240.0030.00915.11
7.0.230.0080.00815.44
7.0.220.0100.00615.24
7.0.210.0000.01215.20
7.0.200.0040.00816.10
7.0.190.0060.01015.35
7.0.180.0000.01015.53
7.0.170.0070.00715.24
7.0.160.0000.01215.29
7.0.150.0120.00315.16
7.0.140.0000.00815.38
7.0.130.0030.00615.30
7.0.120.0060.00615.19
7.0.110.0130.00315.35
7.0.100.0130.00715.49
7.0.90.0080.00815.32
7.0.80.0070.00715.25
7.0.70.0090.00615.20
7.0.60.0130.04218.58
7.0.50.0110.03916.63
7.0.40.0030.04216.53
7.0.30.0050.04816.65
7.0.20.0230.02316.73
7.0.10.0060.04616.79
7.0.00.0070.03916.78
5.6.400.0040.01113.82
5.6.390.0000.01114.33
5.6.380.0000.01114.44
5.6.370.0070.00713.95
5.6.360.0080.00414.16
5.6.350.0030.00614.15
5.6.340.0000.01314.17
5.6.330.0030.01414.31
5.6.320.0030.00714.29
5.6.310.0030.00914.08
5.6.300.0090.00314.28
5.6.290.0040.01114.09
5.6.280.0030.02317.76
5.6.270.0030.01014.27
5.6.260.0130.00313.98
5.6.250.0110.01114.13
5.6.240.0060.00614.12
5.6.230.0040.00914.10
5.6.220.0070.00714.07
5.6.210.0120.04217.19
5.6.200.0030.04716.23
5.6.190.0050.03717.23
5.6.180.0300.03617.44
5.6.170.0150.03317.17
5.6.160.0070.04517.30
5.6.150.0080.02516.15
5.6.140.0060.02316.19
5.6.130.0120.04316.30
5.6.120.0030.03317.61
5.6.110.0070.05017.61
5.6.100.0030.03517.68
5.6.90.0100.04317.55
5.6.80.0080.03017.10
5.6.70.0040.01113.89
5.6.60.0080.00414.03
5.6.50.0000.01414.27
5.6.40.0000.01414.29
5.6.30.0060.00913.93
5.6.20.0070.01013.97
5.6.10.0060.01014.15
5.6.00.0030.00913.96
5.5.380.0060.00313.76
5.5.370.0030.01314.22
5.5.360.0030.01214.02
5.5.350.1880.02817.30
5.5.340.0090.04116.08
5.5.330.0130.04017.36
5.5.320.0280.04317.14
5.5.310.0150.04317.25
5.5.300.0080.03316.10
5.5.290.0050.03216.03
5.5.280.0030.04817.34
5.5.270.0100.02017.41
5.5.260.0080.02717.38
5.5.250.0050.04317.21
5.5.240.0100.04417.05
5.5.230.0040.01114.16
5.5.220.0040.00813.86
5.5.210.0070.00714.07
5.5.200.0070.00714.02
5.5.190.0040.01114.04
5.5.180.0110.00013.91
5.5.170.0000.01314.11
5.5.160.0000.00913.83
5.5.150.0000.01014.01
5.5.140.0110.00314.09
5.5.130.0040.01214.07
5.5.120.0090.00613.84
5.5.110.0000.00913.77
5.5.100.0070.00713.80
5.5.90.0040.01513.75
5.5.80.0040.01414.00
5.5.70.0000.00814.20
5.5.60.0000.00914.07
5.5.50.0000.00914.20
5.5.40.0000.01313.92
5.5.30.0030.00613.57
5.5.20.0070.00414.03
5.5.10.0040.00414.05
5.5.00.0070.00414.02

preferences:
60.21 ms | 400 KiB | 5 Q