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.40.0140.00718.92
8.3.30.0160.00318.84
8.3.20.0050.00318.81
8.3.10.0040.00420.95
8.3.00.0070.00023.41
8.2.170.0060.01222.96
8.2.160.0030.01020.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00520.98
8.2.110.0070.00320.56
8.2.100.0070.00417.91
8.2.90.0090.00019.34
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0050.00317.68
8.2.50.0030.00518.07
8.2.40.0050.00218.16
8.2.30.0000.00721.16
8.2.20.0070.00017.72
8.2.10.0030.00617.64
8.2.00.0000.00717.67
8.1.270.0000.00723.99
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0060.00621.03
8.1.220.0000.00918.77
8.1.210.0050.00318.91
8.1.200.0030.00617.35
8.1.190.0040.00417.53
8.1.180.0060.00318.10
8.1.170.0030.00518.61
8.1.160.0050.00218.80
8.1.150.0030.00618.56
8.1.140.0050.00317.50
8.1.130.0080.00017.96
8.1.120.0040.00417.53
8.1.110.0000.00817.35
8.1.100.0030.00617.53
8.1.90.0050.00217.40
8.1.80.0040.00417.50
8.1.70.0030.00517.45
8.1.60.0090.00017.64
8.1.50.0080.00017.42
8.1.40.0000.00817.43
8.1.30.0000.00717.61
8.1.20.0050.00317.62
8.1.10.0000.00717.59
8.1.00.0000.00817.54
8.0.300.0030.00620.01
8.0.290.0080.00017.04
8.0.280.0030.00318.36
8.0.270.0030.00317.21
8.0.260.0030.00316.96
8.0.250.0070.00016.91
8.0.240.0030.00517.00
8.0.230.0070.00016.89
8.0.220.0070.00317.00
8.0.210.0000.00716.98
8.0.200.0030.00617.06
8.0.190.0050.00216.89
8.0.180.0000.00716.95
8.0.170.0000.00716.97
8.0.160.0080.00016.92
8.0.150.0030.00316.92
8.0.140.0000.00716.97
8.0.130.0030.00313.39
8.0.120.0000.00716.86
8.0.110.0030.00516.95
8.0.100.0040.00416.86
8.0.90.0040.00416.88
8.0.80.0040.01216.91
8.0.70.0030.00516.91
8.0.60.0040.00416.83
8.0.50.0080.00016.73
8.0.30.0070.01017.02
8.0.20.0130.00717.40
8.0.10.0070.00017.03
8.0.00.0130.00716.90
7.4.330.0050.00014.81
7.4.320.0000.00616.62
7.4.300.0030.00316.49
7.4.290.0040.00416.61
7.4.280.0030.00316.48
7.4.270.0070.00016.63
7.4.260.0050.00013.32
7.4.250.0040.00416.47
7.4.240.0050.00216.65
7.4.230.0030.00316.41
7.4.220.0070.01116.48
7.4.210.0080.00916.58
7.4.200.0070.00016.61
7.4.190.0050.00216.32
7.4.160.0200.00316.54
7.4.150.0120.00617.40
7.4.140.0060.01117.86
7.4.130.0070.01216.49
7.4.120.0120.00616.58
7.4.110.0040.01416.56
7.4.100.0090.01316.43
7.4.90.0120.00616.56
7.4.80.0030.01319.39
7.4.70.0110.00616.67
7.4.60.0110.00616.42
7.4.50.0060.00316.49
7.4.40.0000.01422.52
7.4.30.0080.01216.53
7.4.10.0110.00619.48
7.4.00.0080.01017.21
7.3.330.0050.00013.12
7.3.320.0000.00613.15
7.3.310.0030.00316.20
7.3.300.0030.00316.15
7.3.290.0090.00616.30
7.3.280.0060.01216.25
7.3.270.0030.01317.40
7.3.260.0090.01318.24
7.3.250.0180.02216.33
7.3.240.0070.01016.55
7.3.230.0130.00716.50
7.3.210.0030.01416.41
7.3.200.0060.01819.39
7.3.190.0140.00716.43
7.3.180.0110.00616.49
7.3.170.0060.01116.39
7.3.160.0130.00716.35
7.3.130.0030.01619.48
7.3.120.0030.01117.28
7.3.110.0130.00319.48
7.3.100.0070.01019.48
7.3.90.0090.00619.48
7.3.80.0070.01019.48
7.3.70.0060.01019.48
7.3.60.0070.00319.48
7.3.50.0060.00519.48
7.3.40.0040.00819.48
7.3.30.0110.00419.48
7.3.20.0160.00019.48
7.3.10.0070.01019.48
7.3.00.0110.00419.48
7.2.330.0150.00316.59
7.2.320.0080.01516.78
7.2.310.0090.00916.55
7.2.300.0050.01116.47
7.2.290.0060.01216.63
7.2.260.0150.00319.48
7.2.250.0030.01619.48
7.2.240.0060.00619.48
7.2.230.0130.00319.48
7.2.220.0090.00619.48
7.2.210.0000.01419.48
7.2.200.0030.01319.48
7.2.190.0110.00019.48
7.2.180.0060.00919.48
7.2.170.0030.01019.48
7.2.160.0040.01019.48
7.2.150.0100.01019.48
7.2.140.0060.00619.48
7.2.130.0080.00419.48
7.2.120.0080.00819.48
7.2.110.0060.01019.48
7.2.100.0100.00619.48
7.2.90.0040.00719.48
7.2.80.0040.01119.48
7.2.70.0030.01019.48
7.2.60.0020.01018.21
7.2.50.0030.01319.48
7.2.40.0040.00819.48
7.2.30.0110.00419.48
7.2.20.0070.00319.48
7.2.10.0060.01019.48
7.2.00.0050.00919.53
7.1.330.0060.01019.48
7.1.320.0040.00819.48
7.1.310.0030.01219.48
7.1.300.0050.00519.48
7.1.290.0040.01119.48
7.1.280.0000.01219.48
7.1.270.0090.00919.48
7.1.260.0060.00319.48
7.1.250.0050.00519.48
7.1.240.0040.01519.48
7.1.230.0060.00319.48
7.1.220.0030.01319.48
7.1.210.0000.01419.48
7.1.200.0030.00617.47
7.1.190.0130.00319.48
7.1.180.0070.01019.48
7.1.170.0070.00719.48
7.1.160.0040.01119.48
7.1.150.0100.00719.48
7.1.140.0060.00319.48
7.1.130.0000.01219.48
7.1.120.0060.00319.48
7.1.110.0060.00619.48
7.1.100.0090.00418.78
7.1.90.0030.00719.48
7.1.80.0070.01119.48
7.1.70.0050.00618.21
7.1.60.0090.01119.44
7.1.50.0100.00718.21
7.1.40.0040.00819.48
7.1.30.0060.00919.48
7.1.20.0090.00619.48
7.1.10.0060.00619.48
7.1.00.0050.01820.97
7.0.330.0030.00919.48
7.0.320.0070.01119.48
7.0.310.0090.00319.48
7.0.300.0000.01019.48
7.0.290.0070.00719.48
7.0.280.0060.00919.48
7.0.270.0060.00319.48
7.0.260.0060.00919.48
7.0.250.0120.00019.48
7.0.240.0030.00619.48
7.0.230.0040.00419.48
7.0.220.0060.01019.48
7.0.210.0030.01019.48
7.0.200.0070.00818.02
7.0.190.0120.00019.48
7.0.180.0060.00319.48
7.0.170.0030.00719.48
7.0.160.0030.00619.48
7.0.150.0070.00319.48
7.0.140.0070.03720.74
7.0.130.0030.01019.48
7.0.120.0040.00719.48
7.0.110.0070.00719.48
7.0.100.0090.00019.48
7.0.90.0380.02519.66
7.0.80.0300.04219.67
7.0.70.0300.04919.70
7.0.60.0250.04719.67
7.0.50.0380.04819.89
7.0.40.0050.03019.78
7.0.30.0070.04419.72
7.0.20.0070.02419.79
7.0.10.0110.03919.80
7.0.00.0020.03119.79
5.6.400.0080.00619.48
5.6.390.0060.00919.48
5.6.380.0080.00619.48
5.6.370.0100.00319.48
5.6.360.0040.00719.48
5.6.350.0070.01119.48
5.6.340.0000.01219.48
5.6.330.0060.01019.48
5.6.320.0060.00819.48
5.6.310.0070.00719.48
5.6.300.0070.00719.48
5.6.290.0080.00619.48
5.6.280.0070.03720.20
5.6.270.0070.01019.48
5.6.260.0030.00619.48
5.6.250.0060.00919.48
5.6.240.0060.00919.48
5.6.230.0050.04620.12
5.6.220.0070.04420.08
5.6.210.0100.04519.98
5.6.200.0080.04520.29
5.6.190.0060.04320.25
5.6.180.0030.04420.22
5.6.170.0020.04620.21
5.6.160.0070.04820.28
5.6.150.0080.04020.33
5.6.140.0030.04120.22
5.6.130.0080.03120.24
5.6.120.0120.03620.29
5.6.110.0100.04220.25
5.6.100.0050.04120.22
5.6.90.0100.03820.29
5.6.80.0070.03820.02
5.6.70.0040.04419.98
5.6.60.0030.03019.94
5.6.50.0100.02219.99
5.6.40.0110.02619.96
5.6.30.0030.02619.90
5.6.20.0070.02219.89
5.6.10.0050.04019.97
5.6.00.0050.03419.89
5.5.380.0030.01619.48
5.5.370.0130.03819.92
5.5.360.0070.03719.91
5.5.350.0100.03619.91
5.5.340.0080.04320.18
5.5.330.0130.03320.13
5.5.320.0080.04120.18
5.5.310.0100.03320.18
5.5.300.0090.04520.11
5.5.290.0100.04120.14
5.5.280.0090.04220.21
5.5.270.0080.04620.12
5.5.260.0080.04220.12
5.5.250.0060.02720.05
5.5.240.0070.03019.89
5.5.230.0090.02619.75
5.5.220.0040.03119.86
5.5.210.0050.03319.89
5.5.200.0050.03119.80
5.5.190.0070.02219.83
5.5.180.0070.02719.89
5.5.170.0030.00619.48
5.5.160.0150.03519.79
5.5.150.0060.02819.84
5.5.140.0060.04419.86
5.5.130.0080.04119.86
5.5.120.0070.03219.81
5.5.110.0080.03019.85
5.5.100.0060.04419.71
5.5.90.0100.03719.79
5.5.80.0060.04219.83
5.5.70.0090.04419.71
5.5.60.0070.02419.79
5.5.50.0060.04319.73
5.5.40.0070.04719.77
5.5.30.0030.04519.78
5.5.20.0030.04819.79
5.5.10.0120.03219.78
5.5.00.0060.04719.79
5.4.450.0000.04719.38
5.4.440.0030.04419.48
5.4.430.0050.03019.48
5.4.420.0080.04219.46
5.4.410.0050.03719.43
5.4.400.0030.03819.18
5.4.390.0100.03819.18
5.4.380.0030.03019.28
5.4.370.0070.02919.29
5.4.360.0070.03019.32
5.4.350.0060.02119.31
5.4.340.0040.02419.32
5.4.330.0040.00719.48
5.4.320.0020.02719.16
5.4.310.0060.03619.19
5.4.300.0090.03519.18
5.4.290.0100.02719.34
5.4.280.0100.03819.31
5.4.270.0050.03519.18
5.4.260.0080.04219.30
5.4.250.0030.03019.18
5.4.240.0070.03919.28
5.4.230.0030.04119.21
5.4.220.0060.02619.21
5.4.210.0050.02319.17
5.4.200.0050.04219.26
5.4.190.0070.04319.35
5.4.180.0020.03219.35
5.4.170.0090.02219.34
5.4.160.0090.04019.32
5.4.150.0060.04319.34
5.4.140.0050.04217.95
5.4.130.0030.04717.90
5.4.120.0030.04117.94
5.4.110.0080.03817.91
5.4.100.0050.03717.87
5.4.90.0070.03317.97
5.4.80.0090.02517.95
5.4.70.0030.03717.87
5.4.60.0100.01817.95
5.4.50.0070.03817.90
5.4.40.0110.03817.96
5.4.30.0050.04317.90
5.4.20.0070.03817.86
5.4.10.0030.03317.89
5.4.00.0030.02517.67
5.3.290.0070.02017.05
5.3.280.0020.04416.98
5.3.270.0090.02517.04
5.3.260.0070.04117.08
5.3.250.0050.04517.05
5.3.240.0050.04217.00
5.3.230.0020.04517.05
5.3.220.0090.02517.05
5.3.210.0060.04616.98
5.3.200.0100.03217.09
5.3.190.0070.02717.03
5.3.180.0090.03717.08
5.3.170.0060.02617.05
5.3.160.0050.04017.05
5.3.150.0080.04017.08
5.3.140.0080.02716.98
5.3.130.0070.04017.01
5.3.120.0050.02517.04
5.3.110.0010.04417.03
5.3.100.0050.04216.83
5.3.90.0020.02516.82
5.3.80.0050.04416.82
5.3.70.0020.03516.78
5.3.60.0020.04216.68
5.3.50.0070.03916.77
5.3.40.0020.03216.74
5.3.30.0100.02316.68
5.3.20.0050.04116.64
5.3.10.0070.03716.63
5.3.00.0050.03316.63
5.2.170.0000.06713.77
5.2.160.0030.06013.77
5.2.150.0070.06313.77
5.2.140.0070.05713.77
5.2.130.0070.06013.77
5.2.120.0100.05713.77
5.2.110.0100.05713.77
5.2.100.0030.06013.77
5.2.90.0070.04013.77
5.2.80.0000.03713.77
5.2.70.0070.07013.77
5.2.60.0030.06713.77
5.2.50.0030.06013.77
5.2.40.0000.03713.77
5.2.30.0200.05313.77
5.2.20.0130.05313.77
5.2.10.0070.05713.77
5.2.00.0030.05013.77
5.1.60.0070.03013.77
5.1.50.0030.03313.77
5.1.40.0100.04313.77
5.1.30.0070.05313.77
5.1.20.0030.06013.77
5.1.10.0030.05713.77
5.1.00.0000.05313.77
5.0.50.0000.04013.77
5.0.40.0030.04313.77
5.0.30.0030.06313.77
5.0.20.0030.03713.77
5.0.10.0030.04313.77
5.0.00.0000.06013.77
4.4.90.0000.02013.77
4.4.80.0070.03013.77
4.4.70.0000.04013.77
4.4.60.0030.02313.77
4.4.50.0000.04013.77
4.4.40.0000.04313.77
4.4.30.0000.03713.77
4.4.20.0030.02313.77
4.4.10.0030.03313.77
4.4.00.0100.04713.77
4.3.110.0030.03313.77
4.3.100.0000.03713.77
4.3.90.0030.02713.77
4.3.80.0030.05313.77
4.3.70.0000.04013.77
4.3.60.0000.03713.77
4.3.50.0070.03313.77
4.3.40.0000.05713.77
4.3.30.0030.03313.77
4.3.20.0000.03713.77
4.3.10.0000.03013.77
4.3.00.0000.01713.77

preferences:
44.27 ms | 400 KiB | 5 Q