3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mom {} class Friend extends Mom { public function test(): array { return ['maria','joão']; } } $friend = new Friend(); $var_dump($friend->test());

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.0080.01116.50
8.3.50.0130.00316.35
8.3.40.0040.01118.97
8.3.30.0070.00718.84
8.3.20.0040.00420.22
8.3.10.0040.00421.92
8.3.00.0040.00417.68
8.2.180.0080.01118.54
8.2.170.0060.01022.96
8.2.160.0070.01020.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00317.50
8.2.110.0040.00720.89
8.2.100.0040.00817.50
8.2.90.0040.00419.05
8.2.80.0060.00317.97
8.2.70.0040.00417.48
8.2.60.0040.00417.55
8.2.50.0040.00418.07
8.2.40.0040.00421.00
8.2.30.0040.00420.52
8.2.20.0030.00517.68
8.2.10.0000.00718.09
8.2.00.0040.00417.91
8.1.280.0040.01125.92
8.1.270.0080.00823.86
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.98
8.1.230.0060.00617.42
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.13
8.1.180.0060.00318.10
8.1.170.0090.00020.28
8.1.160.0000.00821.82
8.1.150.0040.00418.83
8.1.140.0050.00321.21
8.1.130.0050.00317.51
8.1.120.0000.00717.25
8.1.110.0000.00717.28
8.1.100.0050.00317.31
8.1.90.0030.00517.41
8.1.80.0000.00717.36
8.1.70.0030.00317.28
8.1.60.0000.00717.48
8.1.50.0040.00417.55
8.1.40.0030.00617.42
8.1.30.0080.00017.50
8.1.20.0090.00317.61
8.1.10.0040.00417.57
8.1.00.0050.00317.39
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.01018.39
8.0.270.0080.00017.10
8.0.260.0030.00317.30
8.0.250.0000.00816.85
8.0.240.0000.00816.89
8.0.230.0030.00616.99
8.0.220.0030.00316.95
8.0.210.0040.00416.79
8.0.200.0060.00016.87
8.0.190.0030.00516.92
8.0.180.0000.00716.90
8.0.170.0000.00816.88
8.0.160.0040.00416.91
8.0.150.0070.00016.79
8.0.140.0040.00416.81
8.0.130.0030.00313.30
8.0.120.0070.00016.69
8.0.110.0040.00416.80
8.0.100.0040.00416.69
8.0.90.0000.00716.91
8.0.80.0090.00716.82
8.0.70.0040.00416.89
8.0.60.0040.00416.77
8.0.50.0000.00716.92
8.0.30.0100.00717.01
8.0.20.0050.01417.40
8.0.10.0040.00417.00
8.0.00.0070.01216.83
7.4.330.0050.00015.08
7.4.320.0060.00016.36
7.4.300.0070.00016.61
7.4.290.0040.00416.61
7.4.280.0050.00316.57
7.4.270.0070.00016.55
7.4.260.0050.00216.49
7.4.250.0000.00716.57
7.4.240.0030.00416.48
7.4.230.0000.00716.59
7.4.220.0080.01316.62
7.4.210.0060.00916.71
7.4.200.0030.00516.60
7.4.160.0120.00316.70
7.4.150.0050.01117.40
7.4.140.0110.01017.86
7.4.130.0080.01216.36
7.4.120.0070.01116.52
7.4.110.0090.01316.71
7.4.100.0090.00916.55
7.4.90.0150.00316.54
7.4.80.0090.01219.39
7.4.70.0070.01116.24
7.4.60.0070.01016.57
7.4.50.0030.00316.34
7.4.40.0110.00916.39
7.4.30.0060.01216.49
7.4.00.0050.01014.89
7.3.330.0060.00013.26
7.3.320.0000.00513.11
7.3.310.0000.00716.14
7.3.300.0070.00016.32
7.3.290.0080.00816.27
7.3.280.0110.00716.29
7.3.270.0180.00017.40
7.3.260.0130.01016.20
7.3.240.0130.00816.49
7.3.230.0180.00016.39
7.3.210.0070.01016.44
7.3.200.0100.00616.24
7.3.190.0060.01016.20
7.3.180.0040.01216.58
7.3.170.0120.00616.51
7.3.160.0060.01016.31
7.3.120.0060.01314.74
7.3.110.0070.01114.72
7.3.100.0000.01614.85
7.3.90.0040.01114.88
7.3.80.0070.00714.50
7.3.70.0000.00814.74
7.3.60.0090.00914.55
7.3.50.0090.00614.52
7.3.40.0100.00014.50
7.3.30.0040.00814.61
7.3.20.0060.00616.29
7.3.10.0120.00016.29
7.3.00.0060.00616.61
7.2.330.0090.00816.67
7.2.320.0100.01416.26
7.2.310.0040.01816.64
7.2.300.0040.01216.66
7.2.290.0130.01016.33
7.2.250.0150.00314.63
7.2.240.0130.00714.84
7.2.230.0100.00615.05
7.2.220.0060.00614.54
7.2.210.0100.00714.71
7.2.200.0090.00315.04
7.2.190.0040.01514.80
7.2.180.0000.00915.02
7.2.170.0030.01015.07
7.2.60.0040.01216.61
7.2.00.0060.01219.48
7.1.330.0040.01115.76
7.1.320.0040.00415.58
7.1.310.0070.00715.50
7.1.300.0080.00515.42
7.1.290.0060.00315.56
7.1.280.0030.01015.40
7.1.270.0000.01215.58
7.1.260.0130.00315.54
7.1.200.0090.00315.36
7.1.100.0070.01018.02
7.1.70.0060.00917.11
7.1.60.0030.02219.50
7.1.50.0070.01816.84
7.1.00.0070.07322.44
7.0.200.0000.00716.40
7.0.60.0200.07719.95
7.0.50.0170.07317.91
7.0.40.0100.08020.11
7.0.30.0230.04720.26
7.0.20.0130.04720.08
7.0.10.0100.08320.03
7.0.00.0100.08720.13
5.6.280.0070.04321.03
5.6.210.0030.08020.77
5.6.200.0070.08018.18
5.6.190.0070.05020.64
5.6.180.0300.07720.79
5.6.170.0230.06320.50
5.6.160.0070.07720.39
5.6.150.0100.07318.18
5.6.140.0070.03718.28
5.6.130.0070.04718.26
5.6.120.0100.06721.01
5.6.110.0030.08720.98
5.6.100.0070.05021.01
5.6.90.0170.07320.97
5.6.80.0130.05720.39
5.5.350.0000.07720.43
5.5.340.0070.07318.09
5.5.330.0070.05320.31
5.5.320.3570.03720.27
5.5.310.0270.04320.37
5.5.300.0030.08317.91
5.5.290.0100.03318.02
5.5.280.0100.08020.73
5.5.270.0130.07720.83
5.5.260.0100.05720.75
5.5.250.0070.07320.70
5.5.240.0000.07720.36
5.4.450.0730.05019.60
5.4.440.0730.05319.45
5.4.430.0600.05719.32
5.4.420.0670.05719.43
5.4.410.0730.04319.57
5.4.400.0630.05719.14
5.4.390.0700.05319.27
5.4.380.0500.05319.00
5.4.370.0230.05719.28
5.4.360.0030.06018.81
5.4.350.0100.05719.28
5.4.340.0570.07719.30
5.4.320.0700.06719.12
5.4.310.0570.05719.30
5.4.300.0670.04718.95
5.4.290.0670.04719.27
5.4.280.0730.08019.00
5.4.270.0700.05719.28
5.4.260.0730.04019.14
5.4.250.0630.05319.27
5.4.240.0630.05019.23
5.4.230.0630.05319.20
5.4.220.0630.06019.27
5.4.210.0630.05318.94
5.4.200.0570.05719.14
5.4.190.0600.06018.99
5.4.180.0700.06019.32
5.4.170.0670.05018.83
5.4.160.0630.05019.28
5.4.150.0630.06319.11
5.4.140.0670.04716.59
5.4.130.0570.05316.56
5.4.120.0600.05316.59
5.4.110.0800.04716.61
5.4.100.0630.05016.61
5.4.90.0670.04716.63
5.4.80.0600.05016.55
5.4.70.0430.05316.23
5.4.60.0070.07016.17
5.4.50.0030.07016.23
5.4.40.0230.07316.16
5.4.30.0370.06316.53
5.4.20.0000.04016.16

preferences:
58.2 ms | 400 KiB | 5 Q