3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace XYZ\Model; interface user{ public function getName() : string; } class myUser implements user { public function getName() : string { return 'Mark'; } } $x = new myUser(); echo $x->getName();

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.4.20.0100.01017.75
8.4.10.0090.00017.64
8.3.150.0160.00319.18
8.3.140.0080.01118.98
8.3.130.0060.00318.60
8.3.120.0030.00719.06
8.3.110.0160.00020.94
8.3.100.0030.01316.52
8.3.90.0040.00426.77
8.3.80.0100.00019.36
8.3.70.0070.01516.63
8.3.60.0110.00416.63
8.3.50.0110.00921.93
8.3.40.0070.00718.65
8.3.30.0090.00618.72
8.3.20.0070.00020.13
8.3.10.0040.00420.36
8.3.00.0070.00022.32
8.2.270.0140.00416.75
8.2.260.0070.01118.79
8.2.250.0000.00816.49
8.2.240.0130.00318.85
8.2.230.0000.00822.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0070.00318.88
8.2.190.0090.00616.58
8.2.180.0110.01116.32
8.2.170.0110.00722.96
8.2.160.0030.01019.04
8.2.150.0080.00024.18
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0090.00019.23
8.2.110.0070.00422.14
8.2.100.0160.00317.88
8.2.90.0000.00818.16
8.2.80.0050.00317.97
8.2.70.0060.00317.47
8.2.60.0090.00017.80
8.2.50.0030.00618.10
8.2.40.0000.00820.35
8.2.30.0070.00020.63
8.2.20.0050.00217.63
8.2.10.0050.00318.07
8.2.00.0040.00417.97
8.1.310.0060.00316.63
8.1.300.0150.00319.48
8.1.290.0060.00330.84
8.1.280.0130.00725.92
8.1.270.0050.00323.82
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00623.97
8.1.230.0060.00620.97
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00917.21
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0050.00220.92
8.1.150.0000.00718.89
8.1.140.0000.00719.58
8.1.130.0030.00517.65
8.1.120.0070.00017.47
8.1.110.0000.00717.44
8.1.100.0000.00717.51
8.1.90.0000.00717.46
8.1.80.0040.00417.34
8.1.70.0000.00717.43
8.1.60.0000.00917.60
8.1.50.0000.00817.56
8.1.40.0030.00917.49
8.1.30.0040.00417.46
8.1.20.0070.00017.53
8.1.10.0050.00217.46
8.1.00.0000.00717.52
8.0.300.0000.00720.04
8.0.290.0080.00016.63
8.0.280.0000.00818.40
8.0.270.0000.00716.67
8.0.260.0000.00617.15
8.0.250.0000.00616.95
8.0.240.0000.00716.89
8.0.230.0040.00416.85
8.0.220.0030.00416.89
8.0.210.0020.00516.96
8.0.200.0030.00316.92
8.0.190.0050.00516.82
8.0.180.0040.00416.82
8.0.170.0000.00716.80
8.0.160.0040.00416.93
8.0.150.0040.00416.81
8.0.140.0000.00716.74
8.0.130.0050.00013.34
8.0.120.0000.00816.97
8.0.110.0030.00516.84
8.0.100.0050.00316.80
8.0.90.0040.00416.84
8.0.80.0030.01216.89
8.0.70.0070.00016.68
8.0.60.0070.00016.93
8.0.50.0080.00016.95
8.0.30.0140.00617.05
8.0.20.0130.00617.40
8.0.10.0040.00416.96
8.0.00.0130.00816.63
7.4.330.0000.00615.08
7.4.320.0040.00416.65
7.4.300.0030.00316.60
7.4.290.0070.00016.48
7.4.280.0050.00316.61
7.4.270.0040.00516.65
7.4.260.0030.00316.60
7.4.250.0030.00516.52
7.4.240.0000.00716.63
7.4.230.0000.00716.61
7.4.220.0120.00916.55
7.4.210.0100.01016.68
7.4.200.0040.00416.58
7.4.160.0140.00716.34
7.4.150.0060.01817.40
7.4.140.0100.01217.86
7.4.130.0070.01016.48
7.4.120.0060.01216.59
7.4.110.0120.01216.71
7.4.100.0140.00316.42
7.4.90.0150.00416.54
7.4.80.0090.00919.39
7.4.70.0060.01016.46
7.4.60.0070.01116.48
7.4.50.0100.00716.55
7.4.40.0130.00316.43
7.4.30.0070.01016.40
7.4.10.0060.01315.10
7.4.00.0070.01115.04
7.3.330.0060.00013.08
7.3.320.0000.00613.10
7.3.310.0040.00416.26
7.3.300.0030.00316.04
7.3.290.0080.00916.20
7.3.280.0070.01116.18
7.3.270.0090.00817.40
7.3.260.0100.00716.37
7.3.250.0110.00916.19
7.3.240.0100.00916.41
7.3.230.0080.00916.39
7.3.210.0100.00616.59
7.3.200.0060.01316.29
7.3.190.0030.01316.16
7.3.180.0080.01116.38
7.3.170.0090.01216.23
7.3.160.0060.00916.36
7.3.130.0090.00914.79
7.3.120.0110.00814.58
7.3.110.0100.01014.82
7.3.100.0050.00914.74
7.3.90.0030.01014.77
7.3.80.0050.00914.83
7.3.70.0050.00814.88
7.3.60.0090.00514.63
7.3.50.0040.01114.57
7.3.40.0040.00814.72
7.3.30.0070.00714.71
7.3.20.0040.01116.58
7.3.10.0030.00916.68
7.3.00.0010.01216.51
7.2.330.0040.01216.62
7.2.320.0060.01216.42
7.2.310.0030.01416.82
7.2.300.0090.00916.40
7.2.290.0070.01416.51
7.2.260.0000.02015.10
7.2.250.0020.01514.94
7.2.240.0040.01115.07
7.2.230.0060.01115.07
7.2.220.0060.00814.91
7.2.210.0070.00915.00
7.2.200.0100.00714.89
7.2.190.0050.00715.03
7.2.180.0080.00614.97
7.2.170.0020.01415.08
7.2.160.0070.00814.90
7.2.150.0020.01316.89
7.2.140.0070.00716.76
7.2.130.0050.00816.80
7.2.120.0060.00516.79
7.2.110.0110.00416.78
7.2.100.0060.00716.77
7.2.90.0070.00916.86
7.2.80.0070.00716.67
7.2.70.0050.00916.83
7.2.60.0070.00716.93
7.2.50.0080.00616.83
7.2.40.0050.00816.91
7.2.30.0070.00416.99
7.2.20.0110.00416.92
7.2.10.0060.00616.83
7.2.00.0040.00917.49
7.1.330.0030.01415.59
7.1.320.0070.01015.85
7.1.310.0090.00315.53
7.1.300.0050.00715.67
7.1.290.0060.00615.67
7.1.280.0030.01115.60
7.1.270.0100.00515.45
7.1.260.0070.00715.74
7.1.250.0070.00615.49
7.1.240.0060.00615.69
7.1.230.0080.00715.68
7.1.220.0060.00415.54
7.1.210.0080.00515.66
7.1.200.0080.00415.74
7.1.190.0060.00615.76
7.1.180.0070.00515.65
7.1.170.0050.00815.65
7.1.160.0050.01015.62
7.1.150.0060.00615.72
7.1.140.0070.00515.65
7.1.130.0070.00515.74
7.1.120.0020.01115.59
7.1.110.0020.00915.66
7.1.100.0060.00816.26
7.1.90.0030.00915.67
7.1.80.0020.01015.57
7.1.70.0030.00816.05
7.1.60.0050.00616.68
7.1.50.0080.00716.03
7.1.40.0030.01015.60
7.1.30.0070.00815.52
7.1.20.0060.00915.55
7.1.10.0080.00515.76
7.1.00.0060.02417.21
7.0.330.0070.00215.26
7.0.320.0060.00415.28
7.0.310.0050.00815.25
7.0.300.0090.00415.16
7.0.290.0050.00615.12
7.0.280.0050.00515.24
7.0.270.0050.00715.27
7.0.260.0070.00615.16
7.0.250.0070.00515.38
7.0.240.0050.00915.38
7.0.230.0050.00515.28
7.0.220.0050.00815.39
7.0.210.0030.01115.17
7.0.200.0040.00715.58
7.0.190.0050.00815.45
7.0.180.0040.00615.27
7.0.170.0070.00715.32
7.0.160.0070.00715.32
7.0.150.0090.00615.21
7.0.140.0060.00615.22
7.0.130.0070.00515.29
7.0.120.0040.00815.21
7.0.110.0070.00515.33
7.0.100.0050.02816.40
7.0.90.0060.02616.54
7.0.80.0050.02516.41
7.0.70.0050.02516.46
7.0.60.0060.02616.46
7.0.50.0030.02816.60
7.0.40.0040.02815.07
7.0.30.0090.02515.00
7.0.20.0030.01814.98
7.0.10.0040.02414.96
7.0.00.0050.02214.97
5.6.400.0100.00514.13
5.6.390.0030.01014.16
5.6.380.0050.00914.21
5.6.370.0040.00914.11
5.6.360.0070.00614.02
5.6.350.0040.00914.06
5.6.340.0060.00914.04
5.6.330.0070.00414.22
5.6.320.0040.01114.12
5.6.310.0100.00114.05
5.6.300.0060.00714.08
5.6.290.0040.00814.05
5.6.280.0030.02615.85
5.6.270.0060.00913.96
5.6.260.0040.00914.15
5.6.250.0040.02415.79
5.6.240.0090.02215.75
5.6.230.0100.02315.66
5.6.220.0080.01315.72
5.6.210.0090.02415.61
5.6.200.0070.02515.89
5.6.190.0030.02615.88
5.6.180.0030.02815.84
5.6.170.0080.02115.80
5.6.160.0080.02415.91
5.6.150.0070.02615.92
5.6.140.0080.01815.87
5.6.130.0050.01715.71
5.6.120.0050.02115.74
5.6.110.0040.02915.91
5.6.100.0050.02715.81
5.6.90.0070.02415.70
5.6.80.0060.02415.67
5.6.70.0050.02315.61
5.6.60.0040.01915.60
5.6.50.0070.02515.67
5.6.40.0060.02615.59
5.6.30.0070.02215.64
5.6.20.0050.02415.60
5.6.10.0050.01915.63
5.6.00.0060.02615.56
5.5.380.0060.02314.88
5.5.370.0070.02214.88
5.5.360.0080.02014.88
5.5.350.0070.02114.98
5.5.340.0060.02415.04
5.5.330.0050.02515.15
5.5.320.0060.01815.00
5.5.310.0060.01515.09
5.5.300.0060.01715.07
5.5.290.0050.01415.13
5.5.280.0050.02614.99
5.5.270.0060.02114.94
5.5.260.0050.01715.08
5.5.250.0050.02015.04
5.5.240.0070.02314.76
5.5.230.0070.02514.98
5.5.220.0070.02414.85
5.5.210.0040.02214.86
5.5.200.0060.02314.91
5.5.190.0050.02414.74
5.5.180.0090.01514.83
5.5.170.0030.00713.03
5.5.160.0090.02114.86
5.5.150.0030.02214.83
5.5.140.0060.02214.83
5.5.130.0040.01914.86
5.5.120.0070.01514.81
5.5.110.0090.02114.86
5.5.100.0050.02314.75
5.5.90.0040.02414.70
5.5.80.0070.02314.82
5.5.70.0070.01714.72
5.5.60.0050.02314.82
5.5.50.0030.01814.74
5.5.40.0050.02114.79
5.5.30.0090.02114.83
5.5.20.0050.01714.77
5.5.10.0060.02314.82
5.5.00.0060.01814.79

preferences:
30.55 ms | 403 KiB | 5 Q