3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) { echo "Did you mean getName()?"; die; }); class User { public function getName() { return "Daniel Ribeiro"; } } $user = new User(); $user->getN4me();

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.0100.01018.68
8.3.50.0090.01021.20
8.3.40.0070.00718.97
8.3.30.0070.01419.13
8.3.20.0000.00720.33
8.3.10.0070.00023.66
8.3.00.0090.00019.37
8.2.180.0070.01418.41
8.2.170.0090.00622.96
8.2.160.0070.01322.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00022.23
8.2.110.0080.00322.02
8.2.100.0040.00817.66
8.2.90.0040.00417.84
8.2.80.0040.00419.23
8.2.70.0040.00417.77
8.2.60.0040.00418.05
8.2.50.0000.00918.10
8.2.40.0040.00420.42
8.2.30.0000.00817.92
8.2.20.0050.00317.69
8.2.10.0030.00618.13
8.2.00.0040.00417.74
8.1.280.0160.00625.92
8.1.270.0060.00322.06
8.1.260.0050.00326.35
8.1.250.0000.00928.09
8.1.240.0000.00822.08
8.1.230.0040.00720.85
8.1.220.0040.00417.74
8.1.210.0050.00318.78
8.1.200.0040.00417.35
8.1.190.0030.00617.35
8.1.180.0000.00918.10
8.1.170.0040.00418.65
8.1.160.0080.00022.20
8.1.150.0040.00418.82
8.1.140.0040.00417.46
8.1.130.0030.00517.84
8.1.120.0070.00017.46
8.1.110.0000.00717.35
8.1.100.0050.00217.37
8.1.90.0000.00717.35
8.1.80.0030.00717.48
8.1.70.0000.00717.40
8.1.60.0030.00617.55
8.1.50.0040.00417.49
8.1.40.0000.00817.39
8.1.30.0090.00017.53
8.1.20.0030.00517.66
8.1.10.0040.00417.52
8.1.00.0000.00817.52
8.0.300.0040.00420.17
8.0.290.0080.00016.75
8.0.280.0000.00718.25
8.0.270.0030.00317.19
8.0.260.0030.00317.11
8.0.250.0030.00316.98
8.0.240.0000.00716.95
8.0.230.0070.00016.84
8.0.220.0060.00416.92
8.0.210.0000.00616.93
8.0.200.0030.00316.96
8.0.190.0030.00617.03
8.0.180.0040.00416.88
8.0.170.0040.00417.06
8.0.160.0030.00316.95
8.0.150.0070.00016.96
8.0.140.0030.00316.79
8.0.130.0000.00513.37
8.0.120.0040.00416.92
8.0.110.0000.00816.98
8.0.100.0000.00716.89
8.0.90.0040.00416.92
8.0.80.0090.00616.92
8.0.70.0030.00516.80
8.0.60.0030.00316.84
8.0.50.0040.00416.79
8.0.30.0140.00816.92
8.0.20.0100.01017.40
8.0.10.0030.00516.95
8.0.00.0120.00816.98
7.4.330.0020.00215.14
7.4.320.0050.00216.64
7.4.300.0030.00316.45
7.4.290.0030.00316.59
7.4.280.0070.00416.57
7.4.270.0060.00316.59
7.4.260.0030.00616.61
7.4.250.0000.00716.55
7.4.240.0020.00616.49
7.4.230.0070.00016.45
7.4.220.0260.01616.46
7.4.210.0120.00916.43
7.4.200.0070.00016.70
7.4.160.0100.01316.43
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0080.01516.63
7.4.120.0140.00316.50
7.4.110.0180.00316.43
7.4.100.0080.01516.50
7.4.90.0100.00716.32
7.4.80.0120.00619.39
7.4.70.0110.00616.62
7.4.60.0060.01316.43
7.4.50.0040.00416.40
7.4.40.0090.00616.60
7.4.30.0060.00916.48
7.4.00.0030.01314.84
7.3.330.0000.00513.25
7.3.320.0000.00613.25
7.3.310.0030.00316.35
7.3.300.0000.00716.16
7.3.290.0060.00716.31
7.3.280.0110.00816.25
7.3.270.0060.01117.40
7.3.260.0070.01116.49
7.3.250.0080.00816.55
7.3.240.0140.00316.30
7.3.230.0030.01416.51
7.3.210.0130.01016.64
7.3.200.0120.00919.39
7.3.190.0070.01116.53
7.3.180.0040.01116.26
7.3.170.0060.01016.41
7.3.160.0100.00616.44
7.3.120.0070.01314.83
7.3.110.0040.01414.99
7.3.100.0060.00914.96
7.3.90.0030.01014.70
7.3.80.0030.01014.68
7.3.70.0070.01014.97
7.3.60.0140.00014.62
7.3.50.0060.00614.81
7.3.40.0070.01014.80
7.3.30.0040.01414.71
7.3.20.0110.00016.79
7.3.10.0070.00416.73
7.3.00.0030.01316.70
7.2.330.0070.01016.66
7.2.320.0150.00616.39
7.2.310.0220.01816.46
7.2.300.0080.00816.65
7.2.290.0070.01616.63
7.2.250.0100.01014.89
7.2.240.0100.00714.91
7.2.230.0110.00315.25
7.2.220.0030.00714.87
7.2.210.0100.00315.11
7.2.200.0090.00615.06
7.2.190.0040.01215.09
7.2.180.0040.01114.84
7.2.170.0070.01015.00
7.2.160.0070.00714.75
7.2.150.0040.01116.93
7.2.140.0040.00816.85
7.2.130.0000.01816.95
7.2.120.0140.00316.79
7.2.110.0090.00316.94
7.2.100.0070.01016.98
7.2.90.0070.01016.87
7.2.80.0040.00816.90
7.2.70.0070.00717.03
7.2.60.0050.00916.99
7.2.50.0080.00616.91
7.2.40.0060.00616.94
7.2.30.0090.00616.73
7.2.20.0030.01017.08
7.2.10.0070.00716.75
7.2.00.0030.00817.86
7.1.330.0030.01015.70
7.1.320.0030.01315.44
7.1.310.0000.00915.53
7.1.300.0050.00515.39
7.1.290.0040.01115.75
7.1.280.0030.00715.71
7.1.270.0080.00815.70
7.1.260.0060.00615.62
7.1.250.0030.01615.56
7.1.200.0060.00615.77
7.1.100.0090.00618.12
7.1.70.0150.00616.79
7.1.60.0130.01019.11
7.1.50.0090.01516.77
7.1.00.0100.07022.36
7.0.200.0070.00316.78
7.0.140.0030.07322.07
7.0.60.0100.05320.08
7.0.50.0070.05717.86
7.0.40.0100.04020.27
7.0.30.0300.05320.07
7.0.20.0230.03320.09
7.0.10.0170.05020.24
7.0.00.0070.07320.25
5.6.210.0130.06320.55
5.6.200.0100.04718.22
5.6.190.0000.07720.50
5.6.180.0400.06720.61
5.6.170.1600.05320.51
5.6.160.0070.09320.56
5.6.150.0000.07318.15
5.6.140.0100.08018.16
5.6.130.0070.05018.18
5.6.120.0130.08020.93
5.6.110.0100.06721.14
5.6.100.0100.04321.00
5.6.90.0030.06721.07
5.6.80.0070.05720.40
5.5.350.0130.07320.31
5.5.340.0170.06318.09
5.5.330.0030.04720.31
5.5.320.0370.05320.24
5.5.310.0300.03720.36
5.5.300.0100.07717.99
5.5.290.0130.06717.94
5.5.280.0100.07720.90
5.5.270.0070.06720.85
5.5.260.0170.08320.79
5.5.250.0100.07020.62
5.5.240.0170.04020.34
5.4.450.0230.06019.20
5.4.440.0300.06719.55
5.4.430.0330.06719.32
5.4.420.0230.06019.19
5.4.410.0400.06719.42
5.4.400.0270.05019.15
5.4.390.0330.06718.87
5.4.380.0370.06319.22
5.4.370.0300.06319.21
5.4.360.0370.06718.87
5.4.350.0270.07319.30
5.4.340.0200.05019.16
5.4.320.0270.06319.13
5.4.310.0300.07019.20
5.4.300.0330.06318.97
5.4.290.0270.08018.85
5.4.280.0370.03718.87
5.4.270.0270.07019.17
5.4.260.0230.07019.14
5.4.250.0370.05018.94
5.4.240.0330.06319.09
5.4.230.0230.04319.15
5.4.220.0330.07718.93
5.4.210.0300.06018.96
5.4.200.0270.05318.84
5.4.190.0270.04718.93
5.4.180.0300.06718.86
5.4.170.0330.06719.23
5.4.160.0500.05719.11
5.4.150.0370.06719.11
5.4.140.0370.05716.57
5.4.130.0270.06716.38
5.4.120.0300.04716.56
5.4.110.0330.05716.56
5.4.100.0230.04016.50
5.4.90.0200.04716.64
5.4.80.0300.05716.59
5.4.70.0270.06016.62
5.4.60.0230.04016.25
5.4.50.0300.04716.35
5.4.40.0300.04016.38
5.4.30.0430.05016.34
5.4.20.0270.07716.44
5.4.10.0370.05316.42
5.4.00.0270.06315.95
5.3.290.0230.04714.67
5.3.280.0300.07014.57
5.3.270.0230.04014.51
5.3.260.0500.06314.51
5.3.250.0300.06314.77
5.3.240.0230.04314.72
5.3.230.0300.06714.57
5.3.220.0330.06014.54
5.3.210.0330.06014.50
5.3.200.0400.07314.59
5.3.190.0230.07014.66
5.3.180.0330.07314.54
5.3.170.0230.05014.72
5.3.160.0400.07314.54
5.3.150.0330.07014.68
5.3.140.0300.03714.48
5.3.130.0230.05314.56
5.3.120.0270.06314.52
5.3.110.0270.07314.52
5.3.100.0330.06014.02
5.3.90.0330.06314.25
5.3.80.0370.06014.02
5.3.70.0370.04714.02
5.3.60.0300.05314.17
5.3.50.0230.07314.02
5.3.40.0270.05314.02
5.3.30.0300.06314.02
5.3.20.0270.07314.02
5.3.10.0400.05714.02
5.3.00.0230.06714.02
5.2.170.0230.04314.02
5.2.160.0270.03314.02
5.2.150.0270.05314.02
5.2.140.0230.04014.02
5.2.130.0230.04714.02
5.2.120.0270.04014.02
5.2.110.0500.04714.02
5.2.100.0270.04714.02
5.2.90.0270.04014.02
5.2.80.0230.06014.02
5.2.70.0370.05014.02
5.2.60.0200.06714.02
5.2.50.0430.04014.02
5.2.40.0230.05014.02
5.2.30.0270.04714.02
5.2.20.0230.06014.02
5.2.10.0230.04314.02
5.2.00.0200.03014.02
5.1.60.0170.04014.02
5.1.50.0200.03714.02
5.1.40.0300.04314.02
5.1.30.0200.05314.02
5.1.20.0230.05314.02
5.1.10.0200.03314.02
5.1.00.0170.05714.02
5.0.50.0100.02714.02
5.0.40.0100.03714.02
5.0.30.0100.06014.02
5.0.20.0100.04014.02
5.0.10.0100.04014.02
5.0.00.0100.05714.02
4.4.90.0230.02314.02
4.4.80.0070.03014.02
4.4.70.0130.02314.02
4.4.60.0100.03314.02
4.4.50.0130.03314.02
4.4.40.0070.04014.02
4.4.30.0030.04014.02
4.4.20.0100.02714.02
4.4.10.0100.03314.02
4.4.00.0130.05014.02
4.3.110.0130.02714.02
4.3.100.0130.03014.02
4.3.90.0070.03014.02
4.3.80.0130.04714.02
4.3.70.0130.03014.02
4.3.60.0170.02714.02
4.3.50.0100.03314.02
4.3.40.0100.05314.02
4.3.30.0030.03714.02
4.3.20.0100.02314.02
4.3.10.0070.02314.02
4.3.00.0030.03714.02

preferences:
58.13 ms | 401 KiB | 5 Q