3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) { $errstr .= "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.0040.01118.30
8.3.50.0110.00721.09
8.3.40.0040.01118.68
8.3.30.0060.00819.17
8.3.20.0040.00420.29
8.3.10.0040.00423.71
8.3.00.0050.00319.38
8.2.180.0040.01116.63
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0020.00524.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00321.94
8.2.110.0060.00321.02
8.2.100.0040.00817.75
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0060.00718.07
8.2.40.0000.00919.94
8.2.30.0000.01018.05
8.2.20.0030.00717.73
8.2.10.0020.00518.06
8.2.00.0040.00417.80
8.1.280.0070.01325.92
8.1.270.0070.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.83
8.1.230.0100.00317.42
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0080.00017.36
8.1.180.0000.00718.10
8.1.170.0050.00518.51
8.1.160.0060.00321.96
8.1.150.0000.00719.00
8.1.140.0030.00617.55
8.1.130.0030.00317.83
8.1.120.0040.00417.38
8.1.110.0030.00517.46
8.1.100.0040.00317.35
8.1.90.0000.00717.35
8.1.80.0070.00417.45
8.1.70.0000.00717.46
8.1.60.0040.00417.48
8.1.50.0040.00417.36
8.1.40.0000.00717.51
8.1.30.0040.00417.56
8.1.20.0030.00517.65
8.1.10.0000.00717.64
8.1.00.0040.00417.57
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0040.00417.15
8.0.260.0000.00617.16
8.0.250.0000.00716.96
8.0.240.0080.00017.01
8.0.230.0000.00716.98
8.0.220.0090.00016.83
8.0.210.0030.00316.90
8.0.200.0030.00317.04
8.0.190.0060.00616.97
8.0.180.0030.00516.97
8.0.170.0040.00417.01
8.0.160.0040.00317.02
8.0.150.0040.00416.94
8.0.140.0030.00316.81
8.0.130.0000.00513.36
8.0.120.0000.00816.83
8.0.110.0030.00517.00
8.0.100.0040.00416.82
8.0.90.0040.00416.98
8.0.80.0040.01216.98
8.0.70.0000.00816.96
8.0.60.0040.00417.04
8.0.50.0040.00416.75
8.0.30.0120.01117.08
8.0.20.0150.00517.40
8.0.10.0030.00516.90
8.0.00.0080.00916.71
7.4.330.0020.00215.09
7.4.320.0030.00316.45
7.4.300.0060.00016.58
7.4.290.0030.00316.50
7.4.280.0050.00516.64
7.4.270.0040.00416.51
7.4.260.0000.00716.56
7.4.250.0040.00416.57
7.4.240.0020.00516.45
7.4.230.0030.00316.62
7.4.220.0060.01316.53
7.4.210.0140.00316.62
7.4.200.0040.00416.49
7.4.160.0150.00616.45
7.4.150.0120.01217.40
7.4.140.0070.01217.86
7.4.130.0090.01116.60
7.4.120.0110.00616.52
7.4.110.0140.00716.58
7.4.100.0070.01016.54
7.4.90.0100.00716.35
7.4.80.0070.01019.39
7.4.70.0100.00616.60
7.4.60.0060.01616.42
7.4.50.0040.00416.21
7.4.40.0110.00416.46
7.4.30.0150.00016.55
7.4.00.0060.00915.19
7.3.330.0000.00613.30
7.3.320.0000.00613.14
7.3.310.0070.00016.19
7.3.300.0000.00716.31
7.3.290.0070.00716.23
7.3.280.0090.00716.31
7.3.270.0100.00717.40
7.3.260.0070.01016.36
7.3.250.0060.01116.42
7.3.240.0090.01316.60
7.3.230.0170.00016.39
7.3.210.0160.00716.43
7.3.200.0150.00319.39
7.3.190.0130.00716.48
7.3.180.0090.00616.30
7.3.170.0060.00916.43
7.3.160.0090.00616.33
7.3.10.0110.00716.24
7.3.00.0140.01616.39
7.2.330.0120.00616.45
7.2.320.0120.00616.45
7.2.310.0100.00716.56
7.2.300.0100.00616.67
7.2.290.0120.00916.50
7.2.130.0180.00316.45
7.2.120.0100.01016.36
7.2.110.0140.00416.48
7.2.100.0100.00716.41
7.2.90.0090.00616.35
7.2.80.0110.00616.26
7.2.70.0170.00916.48
7.2.60.0070.00916.75
7.2.50.0150.01516.41
7.2.40.0090.01116.46
7.2.30.0110.01116.13
7.2.20.0170.00816.54
7.2.10.0140.00716.59
7.2.00.0100.00918.06
7.1.250.0140.00315.11
7.1.200.0070.00715.41
7.1.70.0000.00717.13
7.1.60.0040.00717.09
7.1.50.0110.01116.79
7.1.00.0100.06322.33
7.0.200.0030.01016.39
7.0.140.0100.06721.92
7.0.60.0070.04320.03
7.0.50.0070.07317.87
7.0.40.0000.04720.27
7.0.30.0400.06020.28
7.0.20.0170.04020.26
7.0.10.0100.08720.30
7.0.00.0130.08020.20
5.6.280.0070.07021.13
5.6.210.0130.07720.54
5.6.200.0170.07718.19
5.6.190.0130.03720.50
5.6.180.0330.07320.41
5.6.170.1430.04020.48
5.6.160.0070.08020.55
5.6.150.0070.06318.27
5.6.140.0070.07318.14
5.6.130.0100.04018.18
5.6.120.0100.08320.92
5.6.110.0030.07021.05
5.6.100.0070.09020.98
5.6.90.0130.05320.98
5.6.80.0070.07720.52
5.5.350.0130.06320.43
5.5.340.0070.08018.05
5.5.330.0070.04720.36
5.5.320.0330.06020.35
5.5.310.0230.08320.27
5.5.300.0130.06317.99
5.5.290.0000.09317.96
5.5.280.0070.04720.88
5.5.270.0000.04720.75
5.5.260.0170.07720.65
5.5.250.0070.05720.79
5.5.240.0230.03720.35
5.4.450.1130.08319.17
5.4.440.0670.05719.43
5.4.430.1030.05019.27
5.4.420.0670.00019.51
5.4.410.0630.00019.57
5.4.400.0630.00019.34
5.4.390.0630.00019.13
5.4.380.0670.00019.02
5.4.370.0870.00019.07
5.4.360.0670.00019.12
5.4.350.0670.00019.09
5.4.340.0050.04212.02
5.4.320.0060.03712.51
5.4.310.0060.04012.50
5.4.300.0060.03912.50
5.4.290.0090.03712.49
5.4.280.0120.03412.39
5.4.270.0030.04112.39
5.4.260.0070.04312.39
5.4.250.0080.04112.39
5.4.240.0080.03812.39
5.4.230.0080.04012.39
5.4.220.0100.03312.39
5.4.210.0050.03712.39
5.4.200.0040.04012.39
5.4.190.0080.03812.38
5.4.180.0070.03512.38
5.4.170.0070.03712.39
5.4.160.0060.03712.39
5.4.150.0120.03512.39
5.4.140.0060.03812.07
5.4.130.0110.03712.06
5.4.120.0080.04512.02
5.4.110.0150.06912.01
5.4.100.0080.04512.01
5.4.90.0090.05012.01
5.4.80.0090.04912.02
5.4.70.0090.04512.01
5.4.60.0130.04212.01
5.4.50.0120.05512.01
5.4.40.0050.03811.99
5.4.30.0060.03811.99
5.4.20.0120.04011.99
5.4.10.0110.04011.99
5.4.00.0110.03411.49
5.3.290.0080.03712.80
5.3.280.0050.03912.71
5.3.270.0070.04012.72
5.3.260.0070.04812.71
5.3.250.0100.03412.72
5.3.240.0110.03612.72
5.3.230.0070.04112.71
5.3.220.0070.04112.68
5.3.210.0030.04212.68
5.3.200.0060.04212.68
5.3.190.0050.04312.68
5.3.180.0060.03912.67
5.3.170.0090.04212.67
5.3.160.0060.04012.68
5.3.150.0090.04812.68
5.3.140.0060.03712.66
5.3.130.0100.03912.66
5.3.120.0060.03912.66
5.3.110.0040.05212.66
5.3.100.0110.03512.13
5.3.90.0060.03812.11
5.3.80.0080.03412.10
5.3.70.0060.03612.10
5.3.60.0050.03712.08
5.3.50.0080.03412.04
5.3.40.0070.04512.04
5.3.30.0070.04311.99
5.3.20.0070.03611.77
5.3.10.0100.05111.73
5.3.00.0090.04411.73
5.2.170.0060.0349.18
5.2.160.0050.0309.18
5.2.150.0090.0349.18
5.2.140.0100.0359.18
5.2.130.0050.0339.14
5.2.120.0110.0319.14
5.2.110.0060.0289.14
5.2.100.0040.0309.14
5.2.90.0050.0309.14
5.2.80.0080.0309.13
5.2.70.0150.0369.14
5.2.60.0100.0369.09
5.2.50.0070.0429.06
5.2.40.0070.0279.03
5.2.30.0040.0339.01
5.2.20.0090.0359.00
5.2.10.0070.0348.93
5.2.00.0080.0368.78
5.1.60.0070.0328.06
5.1.50.0060.0328.06
5.1.40.0050.0318.05
5.1.30.0110.0348.40
5.1.20.0060.0268.42
5.1.10.0070.0238.14
5.1.00.0050.0268.14
5.0.50.0030.0226.63
5.0.40.0040.0236.48
5.0.30.0030.0326.29
5.0.20.0040.0206.26
5.0.10.0040.0196.24
5.0.00.0040.0326.23
4.4.90.0030.0154.77
4.4.80.0040.0154.76
4.4.70.0020.0164.75
4.4.60.0020.0174.75
4.4.50.0050.0184.77
4.4.40.0020.0274.71
4.4.30.0050.0154.76
4.4.20.0030.0174.85
4.4.10.0080.0134.85
4.4.00.0010.0284.76
4.3.110.0040.0154.67
4.3.100.0030.0164.66
4.3.90.0020.0174.63
4.3.80.0050.0274.58
4.3.70.0060.0154.63
4.3.60.0080.0184.63
4.3.50.0040.0244.63
4.3.40.0110.0284.54
4.3.30.0030.0223.29
4.3.20.0050.0253.27
4.3.10.0040.0153.22
4.3.00.0070.0237.13

preferences:
51.88 ms | 401 KiB | 5 Q