3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseController { } class UserController extends BaseController { public static $get; public function get($id) { echo "Get: $id"; } public static function init() { $r = new ReflectionClass(static::class); var_dump(get_class($r)); } } echo UserController::init(); echo UserController::$get;

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.68
8.3.30.0030.01419.09
8.3.20.0050.00320.35
8.3.10.0080.00023.71
8.3.00.0080.00019.13
8.2.170.0180.00422.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.91
8.2.110.0030.00622.06
8.2.100.0120.00019.36
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0000.01117.38
8.2.60.0000.00918.04
8.2.50.0090.00018.07
8.2.40.0070.00018.22
8.2.30.0000.00717.96
8.2.20.0000.00717.61
8.2.10.0050.00217.87
8.2.00.0050.00317.61
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.91
8.1.230.0040.00719.15
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00817.25
8.1.180.0070.00318.10
8.1.170.0030.00518.45
8.1.160.0070.00022.01
8.1.150.0000.00718.73
8.1.140.0000.00717.49
8.1.130.0000.00717.76
8.1.120.0000.00717.23
8.1.110.0070.00017.30
8.1.100.0090.00017.39
8.1.90.0030.00317.38
8.1.80.0040.00417.30
8.1.70.0040.00417.20
8.1.60.0030.00617.64
8.1.50.0000.00917.52
8.1.40.0000.00917.55
8.1.30.0000.00817.67
8.1.20.0050.00317.56
8.1.10.0000.00717.61
8.1.00.0050.00217.43
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.35
8.0.270.0000.00817.31
8.0.260.0060.00017.26
8.0.250.0020.00516.97
8.0.240.0000.00716.90
8.0.230.0030.00316.83
8.0.220.0000.00716.79
8.0.210.0030.00316.80
8.0.200.0030.00316.90
8.0.190.0040.00416.84
8.0.180.0040.00416.88
8.0.170.0040.00416.89
8.0.160.0070.00016.78
8.0.150.0000.00716.82
8.0.140.0040.00416.84
8.0.130.0050.00013.25
8.0.120.0000.00816.72
8.0.110.0070.00016.66
8.0.100.0040.00416.78
8.0.90.0000.00716.88
8.0.80.0060.00916.86
8.0.70.0000.00716.84
8.0.60.0000.00716.75
8.0.50.0040.00416.68
8.0.30.0090.01016.78
8.0.20.0060.01717.40
8.0.10.0030.00517.01
8.0.00.0100.00816.67
7.4.330.0050.00015.01
7.4.320.0060.00016.46
7.4.300.0030.00316.59
7.4.290.0030.00616.50
7.4.280.0030.00516.50
7.4.270.0080.00016.58
7.4.260.0030.00316.63
7.4.250.0030.00316.51
7.4.240.0020.00616.61
7.4.230.0000.00716.57
7.4.220.0060.01816.54
7.4.210.0060.01016.61
7.4.200.0030.00316.40
7.4.160.0060.01116.57
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0100.00816.45
7.4.120.0120.00916.57
7.4.110.0070.01416.44
7.4.100.0090.00816.59
7.4.90.0070.01016.47
7.4.80.0070.01019.39
7.4.70.0060.01216.29
7.4.60.0130.00316.44
7.4.50.0000.00816.50
7.4.40.0060.01016.38
7.4.30.0100.00616.42
7.4.10.0040.01415.00
7.4.00.0070.00514.81
7.3.330.0050.00013.19
7.3.320.0000.00513.40
7.3.310.0070.00016.27
7.3.300.0000.00716.39
7.3.290.0060.01216.35
7.3.280.0060.01116.38
7.3.270.0200.00717.40
7.3.260.0140.00416.57
7.3.250.0060.01016.44
7.3.240.0120.00616.57
7.3.230.0030.01316.55
7.3.210.0140.00416.31
7.3.200.0120.00919.39
7.3.190.0100.00716.60
7.3.180.0090.00616.26
7.3.170.0100.00716.31
7.3.160.0100.00716.64
7.3.130.0040.01215.04
7.3.120.0070.01114.82
7.3.110.0060.01314.67
7.3.100.0150.00314.83
7.3.90.0030.01314.93
7.3.80.0040.01514.76
7.3.70.0040.00714.97
7.3.60.0030.01414.77
7.3.50.0000.00914.68
7.3.40.0000.01414.93
7.3.30.0030.01014.56
7.3.20.0040.01216.82
7.3.10.0100.00616.60
7.3.00.0070.00416.61
7.2.330.0110.00616.37
7.2.320.0100.01316.71
7.2.310.0170.00316.70
7.2.300.0070.01016.79
7.2.290.0000.01716.81
7.2.260.0040.01515.09
7.2.250.0070.00714.93
7.2.240.0100.00315.09
7.2.230.0040.01214.77
7.2.220.0030.01715.35
7.2.210.0080.00414.86
7.2.200.0050.00515.03
7.2.190.0070.01015.04
7.2.180.0080.00314.85
7.2.170.0030.01314.90
7.2.160.0060.00315.03
7.2.150.0070.01017.06
7.2.140.0100.00716.92
7.2.130.0030.01316.88
7.2.120.0060.01316.93
7.2.110.0070.01116.98
7.2.100.0100.01016.83
7.2.90.0090.00916.62
7.2.80.0000.01916.76
7.2.70.0070.00717.00
7.2.60.0030.00917.02
7.2.50.0060.00916.87
7.2.40.0070.00716.96
7.2.30.0000.01116.97
7.2.20.0030.01016.70
7.2.10.0030.01116.70
7.2.00.0050.00917.97
7.1.330.0070.00715.46
7.1.320.0100.00715.70
7.1.310.0030.00815.89
7.1.300.0130.00015.65
7.1.290.0060.00615.81
7.1.280.0000.00815.53
7.1.270.0030.00615.82
7.1.260.0030.01015.69
7.1.250.0040.00815.80
7.1.240.0100.00615.70
7.1.230.0060.01215.60
7.1.220.0090.00915.91
7.1.210.0000.00915.88
7.1.200.0060.00615.78
7.1.190.0090.00615.77
7.1.180.0060.00315.68
7.1.170.0060.00615.80
7.1.160.0070.00315.83
7.1.150.0000.01115.48
7.1.140.0060.00615.84
7.1.130.0060.00615.60
7.1.120.0060.00915.74
7.1.110.0040.00715.76
7.1.100.0040.00916.92
7.1.90.0060.00615.67
7.1.80.0070.01015.92
7.1.70.0020.00916.38
7.1.60.0070.00917.64
7.1.50.0120.00816.31
7.1.40.0070.00315.53
7.1.30.0100.00615.68
7.1.20.0070.01115.58
7.1.10.0000.01215.62
7.1.00.0030.04319.15
7.0.330.0030.01015.54
7.0.320.0090.00915.04
7.0.310.0070.01015.28
7.0.300.0000.01015.53
7.0.290.0040.01115.53
7.0.280.0040.00715.23
7.0.270.0120.00615.32
7.0.260.0070.00415.49
7.0.250.0060.00615.33
7.0.240.0090.00615.27
7.0.230.0000.01415.37
7.0.220.0040.01215.19
7.0.210.0060.00315.52
7.0.200.0030.00815.92
7.0.190.0120.00415.39
7.0.180.0040.00415.33
7.0.170.0090.00615.50
7.0.160.0040.01515.24
7.0.150.0000.00915.51
7.0.140.0050.04018.68
7.0.130.0000.01315.24
7.0.120.0030.00715.46
7.0.110.0070.00415.25
7.0.100.0140.00015.11
7.0.90.0080.00815.38
7.0.80.0070.00715.34
7.0.70.0040.00815.11
7.0.60.0120.01817.53
7.0.50.0040.02316.57
7.0.40.0050.02516.80
7.0.30.0220.03216.74
7.0.20.0230.02716.84
7.0.10.0050.03116.83
7.0.00.0030.05216.72
5.6.400.0080.00414.31
5.6.390.0030.00914.20
5.6.380.0070.00714.51
5.6.370.0030.01014.38
5.6.360.0090.00614.57
5.6.350.0000.00913.98
5.6.340.0030.01014.19
5.6.330.0030.01014.16
5.6.320.0040.00814.30
5.6.310.0070.01014.14
5.6.300.0030.00714.21
5.6.290.0070.00714.57
5.6.280.0050.04117.82
5.6.270.0090.00614.23
5.6.260.0040.00814.11
5.6.250.0070.00714.28
5.6.240.0140.00014.55
5.6.230.0060.00314.38
5.6.220.0060.00914.36
5.6.210.0120.03617.28
5.6.200.0080.02316.24
5.6.190.0110.03617.32
5.6.180.1750.02417.36
5.6.170.0240.03017.35
5.6.160.0050.04517.56
5.6.150.0050.02916.24
5.6.140.0030.02816.42
5.6.130.0060.03916.20
5.6.120.0050.03817.71
5.6.110.0080.04417.68
5.6.100.0150.03717.54
5.6.90.0090.04617.68
5.6.80.0100.03817.48
5.6.70.2180.03217.35
5.6.60.0040.00714.24
5.6.50.0000.00813.83
5.6.40.0030.01014.14
5.6.30.0030.01114.46
5.6.20.0110.00014.27
5.6.10.0040.01114.11
5.6.00.0030.00914.50
5.5.380.0100.00013.99
5.5.370.0040.00814.29
5.5.360.0040.00814.32
5.5.350.0110.04517.16
5.5.340.0030.04116.22
5.5.330.0080.02017.40
5.5.320.1700.02517.39
5.5.310.0190.02917.11
5.5.300.0090.03716.12
5.5.290.0050.03816.08
5.5.280.0080.04517.60
5.5.270.0080.04217.35
5.5.260.0050.04517.47
5.5.250.0100.04717.36
5.5.240.0130.04217.11
5.5.230.0080.00414.50
5.5.220.0070.00714.23
5.5.210.0030.00914.20
5.5.200.0040.01114.36
5.5.190.0070.01014.07
5.5.180.0030.00914.09
5.5.170.0030.00914.37
5.5.160.0110.00414.16
5.5.150.0040.00814.08
5.5.140.0040.00714.00
5.5.130.0000.01514.34
5.5.120.0000.01514.02
5.5.110.0040.00814.37
5.5.100.0060.00914.10
5.5.90.0070.00714.18
5.5.80.0080.00414.33
5.5.70.0030.01014.43
5.5.60.0070.00714.20
5.5.50.0000.01514.38
5.5.40.0090.00314.21
5.5.30.0000.00914.31
5.5.20.0120.00014.15
5.5.10.0080.00414.15
5.5.00.0000.00914.26
5.4.450.0100.02715.19
5.4.440.0230.04115.23
5.4.430.0290.03215.23
5.4.420.0320.03015.00
5.4.410.0230.04015.06
5.4.400.0330.03214.99
5.4.390.0180.04114.82
5.4.380.0230.03514.79
5.4.370.0240.02115.04
5.4.360.0220.02514.94
5.4.350.0250.03114.96
5.4.340.0230.04114.94
5.4.330.0070.00311.04
5.4.320.0270.03914.80
5.4.310.0230.03715.06
5.4.300.0260.03214.79
5.4.290.0240.03215.03
5.4.280.0120.04214.97
5.4.270.0130.03615.08
5.4.260.0230.02714.79
5.4.250.0250.03314.82
5.4.240.0250.03414.82
5.4.230.0220.02715.06
5.4.220.0230.03214.96
5.4.210.0270.02714.84
5.4.200.0270.03314.75
5.4.190.0250.03015.05
5.4.180.0270.02514.95
5.4.170.0260.03114.71
5.4.160.0250.03815.03
5.4.150.0170.02914.95
5.4.140.0300.03013.71
5.4.130.0250.02713.63
5.4.120.0230.03913.63
5.4.110.0250.01513.75
5.4.100.0250.02713.58
5.4.90.0220.01913.56
5.4.80.0200.02313.69
5.4.70.0230.03513.49
5.4.60.0320.03013.51
5.4.50.0230.03313.70
5.4.40.0230.03513.44
5.4.30.0250.03313.49
5.4.20.0250.02313.54
5.4.10.0200.02713.66
5.4.00.0290.03413.23
5.3.290.0430.05314.65
5.3.280.0500.04714.61
5.3.270.0530.06314.62
5.3.260.0430.03314.53
5.3.250.0300.04314.58
5.3.240.0330.05314.52
5.3.230.0370.05314.83
5.3.220.0500.05714.50
5.3.210.0400.04714.55
5.3.200.0570.05314.69
5.3.190.0430.03014.65
5.3.180.0470.06714.62
5.3.170.0430.05714.54
5.3.160.0530.06014.48
5.3.150.0500.06714.57
5.3.140.0370.04014.57
5.3.130.0500.06314.52
5.3.120.0500.06714.53
5.3.110.0500.04014.64
5.3.100.0430.06314.09
5.3.90.0400.04714.03
5.3.80.0530.05013.92
5.3.70.0470.06714.18
5.3.60.0300.04314.06
5.3.50.0530.05714.00
5.3.40.0500.05314.17
5.3.30.0500.06013.82
5.3.20.0500.06313.61
5.3.10.0530.05313.67
5.3.00.0500.06313.57
5.2.170.0400.05711.22
5.2.160.0430.05011.15
5.2.150.0370.04011.16
5.2.140.0370.04711.15
5.2.130.0330.04711.11
5.2.120.0400.04711.11
5.2.110.0300.04011.22
5.2.100.0400.05011.11
5.2.90.0470.04711.11
5.2.80.0430.04011.11
5.2.70.0400.05711.22
5.2.60.0400.05711.11
5.2.50.0370.03311.11
5.2.40.0300.05011.16
5.2.30.0270.04711.11
5.2.20.0300.05311.11
5.2.10.0400.04711.11
5.2.00.0300.04711.11
5.1.60.0300.03311.11
5.1.50.0370.05011.11
5.1.40.0330.05011.11
5.1.30.0330.03011.11
5.1.20.0270.05011.11
5.1.10.0300.05311.11
5.1.00.0370.04011.11
5.0.50.0170.04011.11
5.0.40.0200.04011.11
5.0.30.0200.05311.11
5.0.20.0100.02311.11
5.0.10.0130.02011.11
5.0.00.0100.03311.11
4.4.90.0200.01711.11
4.4.80.0170.01711.11
4.4.70.0230.01311.11
4.4.60.0200.02311.11
4.4.50.0200.03011.11
4.4.40.0170.04011.11
4.4.30.0100.03311.11
4.4.20.0130.02311.11
4.4.10.0200.03011.11
4.4.00.0170.03711.11
4.3.110.0130.02711.11
4.3.100.0130.02011.11
4.3.90.0130.01711.11
4.3.80.0170.03311.11
4.3.70.0130.01711.11
4.3.60.0130.01711.11
4.3.50.0130.02011.11
4.3.40.0130.02311.11
4.3.30.0100.02711.11
4.3.20.0100.03011.11
4.3.10.0100.02011.11
4.3.00.0100.02011.11

preferences:
47.37 ms | 400 KiB | 5 Q