3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace security; function get_user() { $user = (object) array('email' => 'abcd@abcd.com', 'name' => 'John Doe'); return $user; } echo "<li><p class=\"navbar-text\">Welcome, {${\security\get_user()->name}}</p></li>";

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.0140.00018.42
8.3.50.0100.01122.12
8.3.40.0110.00418.75
8.3.30.0110.00419.14
8.3.20.0040.00420.16
8.3.10.0050.00322.05
8.3.00.0080.00022.46
8.2.180.0000.01516.38
8.2.170.0040.01122.96
8.2.160.0000.01420.93
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.48
8.2.110.0070.00320.58
8.2.100.0100.00017.72
8.2.90.0050.00319.07
8.2.80.0090.00017.97
8.2.70.0000.00917.75
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0080.00318.13
8.2.20.0000.00817.73
8.2.10.0070.00017.78
8.2.00.0030.00617.74
8.1.280.0120.00925.92
8.1.270.0070.00023.91
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.87
8.1.230.0030.00917.42
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0000.00918.54
8.1.160.0030.00621.89
8.1.150.0000.00718.55
8.1.140.0040.00417.31
8.1.130.0000.00717.79
8.1.120.0040.00417.48
8.1.110.0040.00417.52
8.1.100.0030.00417.43
8.1.90.0080.00017.36
8.1.80.0040.00417.35
8.1.70.0030.00517.49
8.1.60.0050.00317.45
8.1.50.0000.00817.43
8.1.40.0040.00417.49
8.1.30.0030.00517.52
8.1.20.0050.00317.58
8.1.10.0030.00617.40
8.1.00.0070.00017.45
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0070.00017.21
8.0.260.0080.00016.89
8.0.250.0000.00716.93
8.0.240.0000.00717.05
8.0.230.0000.00716.96
8.0.220.0030.00316.82
8.0.210.0070.00016.95
8.0.200.0030.00317.02
8.0.190.0000.00816.91
8.0.180.0050.00516.99
8.0.170.0050.00217.01
8.0.160.0040.00417.03
8.0.150.0100.00016.80
8.0.140.0000.00716.90
8.0.130.0000.00513.35
8.0.120.0050.00316.83
8.0.110.0070.00016.93
8.0.100.0040.00416.84
8.0.90.0080.00016.77
8.0.80.0040.01116.86
8.0.70.0040.00416.93
8.0.60.0030.00617.00
8.0.50.0000.00716.80
8.0.30.0080.01117.03
8.0.20.0130.00817.40
8.0.10.0080.00016.95
8.0.00.0090.00916.91
7.4.330.0020.00215.00
7.4.320.0000.00616.61
7.4.300.0000.00616.64
7.4.290.0000.00716.52
7.4.280.0070.00016.45
7.4.270.0030.00316.52
7.4.260.0050.00516.61
7.4.250.0020.00516.45
7.4.240.0040.00416.58
7.4.230.0030.00316.40
7.4.220.0070.01016.63
7.4.210.0050.01116.61
7.4.200.0000.00716.55
7.4.190.0000.00716.41
7.4.160.0050.01116.55
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0110.00716.45
7.4.120.0090.00816.53
7.4.110.0070.01016.57
7.4.100.0160.00316.54
7.4.90.0070.01016.41
7.4.80.0090.00919.39
7.4.70.0060.00916.49
7.4.60.0100.00716.53
7.4.50.0040.00016.21
7.4.40.0110.00722.77
7.4.30.0120.00516.45
7.4.00.0090.00715.03
7.3.330.0000.00513.17
7.3.320.0020.00213.26
7.3.310.0080.00016.08
7.3.300.0000.00716.34
7.3.290.0030.01216.30
7.3.280.0080.00816.28
7.3.270.0110.00717.40
7.3.260.0070.01116.54
7.3.250.0130.00716.42
7.3.240.0040.01216.39
7.3.230.0090.00816.49
7.3.210.0110.00616.25
7.3.200.0100.00719.39
7.3.190.0080.01116.52
7.3.180.0100.00716.34
7.3.170.0110.00816.38
7.3.160.0030.01316.35
7.3.120.0020.01414.93
7.3.110.0030.01414.41
7.3.100.0090.00314.63
7.3.90.0040.01415.03
7.3.80.0030.01314.84
7.3.70.0070.01114.96
7.3.60.0060.00614.86
7.3.50.0110.00714.64
7.3.40.0040.00414.90
7.3.30.0030.01015.01
7.3.20.0030.01216.73
7.3.10.0040.01016.57
7.3.00.0050.00916.63
7.2.330.0030.01416.72
7.2.320.0090.00916.73
7.2.310.0060.01216.43
7.2.300.0030.02016.77
7.2.290.0100.00716.69
7.2.250.0090.00915.14
7.2.240.0170.00314.97
7.2.230.0070.01114.95
7.2.220.0060.00614.68
7.2.210.0040.01115.08
7.2.200.0060.00914.91
7.2.190.0070.01014.80
7.2.180.0140.00414.91
7.2.170.0060.00315.12
7.2.130.0080.00616.85
7.2.120.0090.00716.98
7.2.110.0050.00616.84
7.2.100.0100.00516.89
7.2.90.0040.00716.79
7.2.80.0030.00916.93
7.2.70.0050.00916.89
7.2.60.0020.01416.93
7.2.50.0030.00716.96
7.2.40.0050.01216.85
7.2.30.0050.00816.99
7.2.20.0090.00216.94
7.2.10.0090.00516.84
7.2.00.0020.01217.73
7.1.330.0070.01015.96
7.1.320.0030.01015.66
7.1.310.0030.01015.41
7.1.300.0040.01215.76
7.1.290.0040.00815.81
7.1.280.0100.00315.65
7.1.270.0000.01415.82
7.1.260.0070.00815.77
7.1.250.0070.00515.74
7.1.240.0060.00315.61
7.1.230.0040.00815.56
7.1.220.0080.00315.43
7.1.210.0070.00715.65
7.1.200.0140.00015.72
7.1.190.0000.00915.61
7.1.180.0000.01615.70
7.1.170.0030.01015.54
7.1.160.0040.01115.41
7.1.150.0090.00615.58
7.1.140.0040.01115.74
7.1.130.0060.00315.47
7.1.120.0070.00715.73
7.1.110.0090.00315.85
7.1.100.0040.00716.90
7.1.90.0060.00315.83
7.1.80.0060.00915.63
7.1.70.0020.00716.28
7.1.60.0050.01317.79
7.1.50.0040.01416.28
7.1.40.0130.00015.54
7.1.30.0040.01115.63
7.1.20.0070.00715.59
7.1.10.0000.01015.53
7.1.00.0030.04419.13
7.0.330.0090.00315.09
7.0.320.0080.00415.30
7.0.310.0000.01715.45
7.0.300.0090.00315.29
7.0.290.0000.00915.32
7.0.280.0070.00714.98
7.0.270.0000.01314.91
7.0.260.0030.00715.44
7.0.250.0060.00615.52
7.0.240.0070.00715.37
7.0.230.0060.00915.32
7.0.220.0080.00615.42
7.0.210.0000.01515.09
7.0.200.0060.00616.07
7.0.190.0080.00415.33
7.0.180.0080.00415.48
7.0.170.0080.00315.36
7.0.160.0030.00715.32
7.0.150.0030.00515.16
7.0.140.0040.03518.80
7.0.130.0060.00615.39
7.0.120.0070.00715.16
7.0.110.0100.00315.18
7.0.100.0040.00715.34
7.0.90.0040.01115.46
7.0.80.0000.01515.29
7.0.70.0000.01715.34
7.0.60.0070.04518.45
7.0.50.0020.02416.56
7.0.40.0070.05016.87
7.0.30.0150.02816.81
7.0.20.0160.02816.65
7.0.10.0040.04216.90
7.0.00.0070.03816.71
5.6.380.0070.00714.30
5.6.370.0070.00714.40
5.6.360.0030.00914.27
5.6.350.0100.00314.41
5.6.340.0040.01114.24
5.6.330.0040.00814.27
5.6.320.0030.00714.13
5.6.310.0060.00614.29
5.6.300.0030.01214.07
5.6.290.0070.01014.10
5.6.280.0070.03817.84
5.6.270.0120.00314.50
5.6.260.0070.01014.31
5.6.250.0080.00814.35
5.6.240.0140.00014.33
5.6.230.0130.00014.10
5.6.220.0090.00014.14
5.6.210.0100.03817.49
5.6.200.0060.02016.37
5.6.190.0100.04017.57
5.6.180.1030.02617.36
5.6.170.0100.03317.39
5.6.160.0000.02717.38
5.6.150.0080.02016.41
5.6.140.0050.03016.19
5.6.130.0020.04816.29
5.6.120.0030.02517.61
5.6.110.0070.01917.70
5.6.100.0080.03717.56
5.6.90.0020.02717.52
5.6.80.0050.03017.20
5.6.70.0050.00514.00
5.6.60.0060.00913.84
5.6.50.0040.00414.37
5.6.40.0000.01614.25
5.6.30.0060.00914.48
5.6.20.0000.01014.37
5.6.10.0000.01214.18
5.6.00.0080.00814.31
5.5.380.0000.00611.64
5.5.370.0030.00311.64
5.5.360.0060.00611.64
5.5.350.2230.02216.03
5.5.340.0100.03814.83
5.5.330.0080.03316.09
5.5.320.0180.02315.97
5.5.310.0070.02715.97
5.5.300.0030.04414.81
5.5.290.0050.02314.85
5.5.280.0060.03816.19
5.5.270.0100.01816.16
5.5.260.0050.04716.16
5.5.250.0030.02516.18
5.5.240.0140.03315.95
5.5.230.0030.00311.64
5.5.220.0000.01311.64
5.5.210.0040.00811.64
5.5.200.0030.00311.64
5.5.190.0060.00611.64
5.5.180.0060.00611.64
5.5.170.0060.00611.64
5.5.160.0000.01111.64
5.5.150.0040.00711.64
5.5.140.0030.00911.64
5.5.130.0030.00711.64
5.5.120.0000.01011.64
5.5.110.0080.00311.64
5.5.100.0030.00911.64
5.5.90.0030.00311.64
5.5.80.0100.00311.64
5.5.70.0090.00311.64
5.5.60.0070.00411.64
5.5.50.0090.00311.64
5.5.40.0070.00411.64
5.5.30.0080.00311.64
5.5.20.0040.00411.64
5.5.10.0060.00611.64
5.5.00.0030.00911.64
5.4.450.0130.03015.62
5.4.440.0400.03215.40
5.4.430.0420.03515.53
5.4.420.0070.02815.60
5.4.410.0450.02515.47
5.4.400.0450.02815.46
5.4.390.0370.03215.29
5.4.380.0090.03015.12
5.4.370.0160.02915.22
5.4.360.0330.03615.12
5.4.350.0160.03115.22
5.4.340.0150.03215.15
5.4.330.0030.00311.64
5.4.320.0020.02712.07
5.4.310.0030.02512.07
5.4.300.0040.02912.07
5.4.290.0060.02012.07
5.4.280.0070.01912.02
5.4.270.0050.02112.02
5.4.260.0060.02412.02
5.4.250.0070.02112.02
5.4.240.0020.02412.02
5.4.230.0050.02412.01
5.4.220.0080.01612.01
5.4.210.0080.01812.01
5.4.200.0020.02312.02
5.4.190.0100.02712.01
5.4.180.0110.02412.01
5.4.170.0090.02312.01
5.4.160.0070.02712.01
5.4.150.0080.02612.01
5.4.140.0130.02311.85
5.4.130.0120.02211.85
5.4.120.0130.02111.82
5.4.110.0130.02011.82
5.4.100.0090.02511.82
5.4.90.0090.02211.82
5.4.80.0100.02411.82
5.4.70.0110.02111.82
5.4.60.0100.02411.82
5.4.50.0090.02611.82
5.4.40.0090.02311.81
5.4.30.0080.02611.81
5.4.20.0070.02511.81
5.4.10.0110.02411.81
5.4.00.0120.02211.56
5.3.290.0080.02612.22
5.3.280.0040.02112.17
5.3.270.0100.02312.18
5.3.260.0110.02312.18
5.3.250.0090.02512.18
5.3.240.0100.02612.18
5.3.230.0110.02412.17
5.3.220.0110.02212.16
5.3.210.0120.02412.16
5.3.200.0120.02412.16
5.3.190.0130.02212.16
5.3.180.0090.02512.15
5.3.170.0110.02312.15
5.3.160.0090.04112.15
5.3.150.0090.02512.15
5.3.140.0120.02412.15
5.3.130.0110.02412.15
5.3.120.0050.03012.15
5.3.110.0130.02012.15
5.3.100.0130.03811.88
5.3.90.0090.02411.87
5.3.80.0090.02611.86
5.3.70.0090.02411.86
5.3.60.0120.02311.85
5.3.50.0070.02611.83
5.3.40.0140.03511.83
5.3.30.0100.02311.81
5.3.20.0090.02411.70
5.3.10.0070.02511.68
5.3.00.0080.02611.67
5.2.170.0070.02110.41
5.2.160.0080.01810.41
5.2.150.0090.01810.41
5.2.140.0080.02110.41
5.2.130.0040.02210.39
5.2.120.0180.03910.39
5.2.110.0090.01810.39
5.2.100.0080.01910.39
5.2.90.0050.02110.39
5.2.80.0110.01910.38
5.2.70.0090.01810.38
5.2.60.0100.02010.36
5.2.50.0090.01910.35
5.2.40.0050.02310.34
5.2.30.0070.02110.32
5.2.20.0050.02010.32
5.2.10.0190.03910.28
5.2.00.0080.01810.21
5.1.60.0070.0169.86
5.1.50.0080.0159.85
5.1.40.0080.0169.84
5.1.30.0110.01410.01
5.1.20.0100.01410.03
5.1.10.0060.0209.89
5.1.00.0120.0299.89
5.0.50.0050.0169.13
5.0.40.0050.0159.06
5.0.30.0050.0208.97
5.0.20.0050.0158.95
5.0.10.0150.0348.94
5.0.00.0050.0218.94
4.4.90.0050.0108.21
4.4.80.0050.0118.20
4.4.70.0070.0108.20
4.4.60.0070.0098.20
4.4.50.0050.0118.20
4.4.40.0050.0168.17
4.4.30.0050.0108.20
4.4.20.0070.0098.24
4.4.10.0050.0128.24
4.4.00.0070.0178.20
4.3.110.0040.0138.15
4.3.100.0040.0118.15
4.3.90.0040.0128.13
4.3.80.0050.0168.11
4.3.70.0070.0098.13
4.3.60.0020.0138.13
4.3.50.0060.0098.13
4.3.40.0040.0168.09
4.3.30.0040.0117.46
4.3.20.0050.0097.46
4.3.10.0020.0137.44
4.3.00.0070.0129.12

preferences:
71.57 ms | 400 KiB | 5 Q