3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class OriginalClass { public function adopt(string $name): string { return $name; } } class XClass extends OriginalClass { public function adopt($name): string { return (string)$name; } } print (new XClass())->adopt(1);

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.140.0120.00917.44
8.4.130.0120.00817.67
8.4.120.0100.00922.19
8.4.110.0110.00922.39
8.4.100.0110.00917.59
8.4.90.0080.01220.30
8.4.80.0130.00418.72
8.4.70.0100.00818.98
8.4.60.0140.00818.95
8.4.50.0120.00720.29
8.4.40.0110.00718.60
8.4.30.0160.00318.67
8.4.20.0130.00619.49
8.4.10.0040.00422.26
8.3.270.0160.01016.41
8.3.260.0090.00616.12
8.3.250.0140.00418.79
8.3.240.0040.00516.42
8.3.230.0120.00616.39
8.3.220.0130.00518.83
8.3.210.0050.01016.50
8.3.200.0050.00516.65
8.3.190.0120.00417.12
8.3.180.0060.00218.95
8.3.170.0070.01118.80
8.3.160.0130.00618.39
8.3.150.0030.00616.93
8.3.140.0040.00420.83
8.3.130.0040.00418.37
8.3.120.0060.00318.70
8.3.110.0120.00620.94
8.3.100.0130.00618.59
8.3.90.0040.00418.44
8.3.80.0060.00319.36
8.3.70.0040.01216.75
8.3.60.0100.00716.50
8.3.50.0060.01123.67
8.3.40.0150.00718.84
8.3.30.0110.00318.83
8.3.20.0090.00324.18
8.3.10.0000.00824.66
8.3.00.0020.00526.16
8.2.290.0120.00720.13
8.2.280.0080.00818.08
8.2.270.0070.00716.43
8.2.260.0000.00717.10
8.2.250.0040.00416.62
8.2.240.0080.00018.73
8.2.230.0060.00322.58
8.2.220.0110.00324.06
8.2.210.0110.00826.77
8.2.200.0040.00818.88
8.2.190.0110.00716.75
8.2.180.0130.00925.92
8.2.170.0110.01122.96
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0070.00021.07
8.2.110.0000.01022.19
8.2.100.0070.00319.27
8.2.90.0000.00819.17
8.2.80.0000.00819.28
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00317.78
8.2.30.0040.00417.99
8.2.20.0000.00818.03
8.2.10.0000.00819.13
8.2.00.0070.00019.00
8.1.330.0060.00921.65
8.1.320.0110.00818.11
8.1.310.0000.00916.54
8.1.300.0100.00517.31
8.1.290.0040.00430.84
8.1.280.0000.01425.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00323.64
8.1.230.0050.00519.10
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.51
8.1.180.0040.00420.29
8.1.170.0080.00018.57
8.1.160.0030.00618.75
8.1.150.0030.00318.67
8.1.140.0030.00318.68
8.1.130.0000.00720.07
8.1.120.0000.00717.34
8.1.110.0000.00717.29
8.1.100.0050.00517.36
8.1.90.0050.00217.34
8.1.80.0040.00417.35
8.1.70.0050.00517.30
8.1.60.0030.00617.51
8.1.50.0050.00217.38
8.1.40.0030.00517.35
8.1.30.0000.00817.63
8.1.20.0040.00417.52
8.1.10.0040.00417.42
8.1.00.0080.00017.41
8.0.300.0050.00218.77
8.0.290.0040.00417.04
8.0.280.0030.00318.38
8.0.270.0040.00417.91
8.0.260.0000.00820.11
8.0.250.0040.00416.82
8.0.240.0040.00416.87
8.0.230.0040.00416.93
8.0.220.0030.00316.75
8.0.210.0070.00016.86
8.0.200.0030.00316.88
8.0.190.0000.00716.84
8.0.180.0000.00716.95
8.0.170.0080.00016.83
8.0.160.0080.00016.87
8.0.150.0040.00416.84
8.0.140.0000.00716.84
8.0.130.0030.00313.28
8.0.120.0050.00316.83
8.0.110.0080.00016.85
8.0.100.0070.00016.70
8.0.90.0000.00716.84
8.0.80.0090.00816.78
8.0.70.0040.00416.77
8.0.60.0030.00616.80
8.0.50.0040.00416.70
8.0.30.0100.00616.91
8.0.20.0100.00816.90
8.0.10.0040.00416.76
8.0.00.0060.01316.80
7.4.330.0060.00015.55
7.4.320.0000.00616.46
7.4.300.0030.00316.46
7.4.290.0050.00316.42
7.4.280.0070.00016.59
7.4.270.0000.00816.54
7.4.260.0050.00216.47
7.4.250.0030.00316.33
7.4.240.0030.00316.46
7.4.230.0030.00316.57
7.4.220.0030.00316.51
7.4.210.0060.00916.54
7.4.200.0040.00416.37
7.4.130.0070.01116.45
7.4.120.0090.01516.45
7.4.110.0040.01316.50
7.4.100.0120.00416.43
7.4.90.0100.00716.41
7.4.80.0090.01419.39
7.4.70.0080.00816.57
7.4.60.0070.00916.62
7.4.50.0090.00916.39
7.4.40.0070.01016.26
7.4.30.0030.01316.26
7.4.20.0170.00016.24
7.4.10.0070.01016.57
7.4.00.0060.01016.49
7.3.330.0000.00716.18
7.3.320.0020.00213.19
7.3.310.0000.00716.13
7.3.300.0030.00316.23
7.3.290.0100.00716.25
7.3.280.0060.01316.08
7.3.260.0080.01116.26
7.3.240.0120.00816.34
7.3.230.0060.01016.43
7.3.210.0080.01116.30
7.3.200.0130.00716.42
7.3.190.0150.00016.49
7.3.180.0100.01316.40
7.3.170.0060.01016.41
7.3.160.0000.01616.30
7.3.150.0090.01216.34
7.3.140.0090.00916.21
7.3.130.0070.01016.17
7.3.120.0030.01316.34
7.3.110.0060.01016.41
7.3.100.0090.01316.26
7.3.90.0030.01316.33
7.3.80.0080.00816.47
7.3.70.0090.00916.37
7.3.60.0040.01216.33
7.3.50.0180.00316.32
7.3.40.0060.00916.23
7.3.30.0080.00816.10
7.3.20.0100.00716.26
7.3.10.0130.00316.23
7.3.00.0060.01216.22
7.2.330.0100.00716.45
7.2.320.0140.00616.37
7.2.310.0060.01116.45
7.2.300.0100.00616.40
7.2.290.0000.01716.43
7.2.280.0060.00916.56
7.2.270.0110.00716.66
7.2.260.0120.00616.55
7.2.250.0070.01016.51
7.2.240.0140.01116.27
7.2.230.0100.00716.41
7.2.220.0130.00716.31
7.2.210.0080.00816.51
7.2.200.0070.01016.55
7.2.190.0130.00316.41
7.2.180.0100.01316.44
7.2.170.0160.00016.49
7.2.160.0060.01016.24
7.2.150.0090.00916.56
7.2.140.0090.00916.65
7.2.130.0200.01016.48
7.2.120.0040.01516.51
7.2.110.0000.01716.61
7.2.100.0170.00016.57
7.2.90.0070.01016.65
7.2.80.0110.01116.59
7.2.70.0060.01016.43
7.2.60.0030.01316.23
7.2.50.0150.00916.57
7.2.40.0190.00416.52
7.2.30.0140.00316.35
7.2.20.0030.01416.30
7.2.10.0060.01016.61
7.2.00.0110.00716.53
7.1.330.0130.00615.44
7.1.320.0090.00915.25
7.1.310.0140.00615.65
7.1.300.0110.00715.43
7.1.290.0110.01115.39
7.1.280.0040.01315.42
7.1.270.0130.00315.37
7.1.260.0090.00915.38
7.1.250.0060.00915.35
7.1.240.0080.00815.25
7.1.230.0070.01015.34
7.1.220.0100.00715.26
7.1.210.0080.00815.30
7.1.200.0090.00615.35
7.1.190.0040.01215.39
7.1.180.0090.00615.46
7.1.170.0090.00615.27
7.1.160.0090.00615.41
7.1.150.0080.00815.36
7.1.140.0040.01115.53
7.1.130.0040.01315.34
7.1.120.0160.00315.57
7.1.110.0130.00315.49
7.1.100.0060.00915.41
7.1.90.0100.00615.59
7.1.80.0120.00315.42
7.1.70.0150.00615.44
7.1.60.0040.01115.27
7.1.50.0060.00915.48
7.1.40.0120.00415.52
7.1.30.0110.00715.52
7.1.20.0060.00915.47
7.1.10.0120.00315.50
7.1.00.0160.00015.43
7.0.330.0110.00715.30
7.0.320.0060.00915.22
7.0.310.0030.01015.13
7.0.300.0060.00915.16
7.0.290.0060.00915.11
7.0.280.0030.01215.31
7.0.270.0290.00315.00
7.0.260.0070.00715.16
7.0.250.0090.00615.08
7.0.240.0090.00815.14
7.0.230.0070.01015.30
7.0.220.0090.00615.37
7.0.210.0120.00314.98
7.0.200.0070.00715.28
7.0.190.0070.00715.20
7.0.180.0110.00715.21
7.0.170.0110.01115.34
7.0.160.0130.00615.18
7.0.150.0050.01414.99
7.0.140.0110.00915.42
7.0.130.0130.00314.82
7.0.120.0060.00915.19
7.0.110.0140.00015.22
7.0.100.0060.01115.07
7.0.90.0060.00915.23
7.0.80.0060.00915.21
7.0.70.0120.01214.91
7.0.60.0090.00615.15
7.0.50.0070.00715.03
7.0.40.0060.00915.07
7.0.30.0120.00314.99
7.0.20.0110.00414.66
7.0.10.0040.01815.00
7.0.00.0120.00314.94
5.6.400.0070.01115.39
5.6.390.0070.01315.52
5.6.380.0120.00515.72
5.6.370.0000.01815.68
5.6.360.0070.01115.82
5.6.350.0070.01115.44
5.6.340.0100.00715.82
5.6.330.0060.01215.54
5.6.320.0140.00315.52
5.6.310.0070.01015.63
5.6.300.0070.01415.29
5.6.290.0060.01215.44
5.6.280.0140.00615.52
5.6.270.0100.00715.50
5.6.260.0040.01215.49
5.6.250.0030.01715.46
5.6.240.0030.01515.47
5.6.230.0030.01615.84
5.6.220.0110.00615.70
5.6.210.0130.00415.56
5.6.200.0090.00915.60
5.6.190.0150.00315.30
5.6.180.0070.01015.62
5.6.170.0110.00615.66
5.6.160.0090.00915.49
5.6.150.0090.00915.30
5.6.140.0090.01015.38
5.6.130.0090.00915.72
5.6.120.0130.00615.36
5.6.110.0040.01415.46
5.6.100.0090.00915.60
5.6.90.0000.01815.55
5.6.80.0140.00315.44
5.6.70.0140.00315.59
5.6.60.0140.00315.58
5.6.50.0100.00715.50
5.6.40.0140.00315.46
5.6.30.0160.00615.58
5.6.20.0030.01315.20
5.6.10.0070.01015.44
5.6.00.0090.01215.50
5.5.380.0060.01115.27
5.5.370.0000.02215.58
5.5.360.0070.01015.39
5.5.350.0100.00715.60
5.5.340.0150.00415.34
5.5.330.0100.01015.37
5.5.320.0090.01215.37
5.5.310.0100.01315.59
5.5.300.0120.00815.57
5.5.290.0120.00615.38
5.5.280.0090.00915.53
5.5.270.0080.01115.49
5.5.260.0120.00615.45
5.5.250.0130.00615.18
5.5.240.0150.00515.31
5.5.230.0140.00615.62
5.5.220.0140.00615.40
5.5.210.0130.00715.26
5.5.200.0160.00315.07
5.5.190.0110.00915.32
5.5.180.0110.01215.32
5.5.170.0080.01215.54
5.5.160.0070.01415.14
5.5.150.0040.01515.25
5.5.140.0100.01315.10
5.5.130.0110.01115.33
5.5.120.0080.01215.37
5.5.110.0160.00315.43
5.5.100.0000.01915.50
5.5.90.0110.01115.54
5.5.80.0100.01115.23
5.5.70.0030.01715.35
5.5.60.0030.01615.48
5.5.50.0090.00915.48
5.5.40.0090.01215.43
5.5.30.0030.01715.12
5.5.20.0090.01215.16
5.5.10.0040.01615.41
5.5.00.0110.00815.02
5.4.450.0040.01212.27
5.4.440.0080.01312.36
5.4.430.0050.00812.15
5.4.420.0050.00712.05
5.4.410.0040.00912.13
5.4.400.0050.00912.35
5.4.390.0030.01012.20
5.4.380.0050.00812.14
5.4.370.0040.01112.45
5.4.360.0090.00912.36
5.4.350.0110.00412.31
5.4.340.0090.00612.09
5.4.330.0070.01512.34
5.4.320.0060.01412.17
5.4.310.0080.00812.12
5.4.300.0070.00712.12
5.4.290.0110.00712.33
5.4.280.0040.01112.20
5.4.270.0140.00012.02
5.4.260.0100.00512.37
5.4.250.0040.01412.10
5.4.240.0110.00412.16
5.4.230.0030.01012.28
5.4.220.0090.00612.25
5.4.210.0110.00312.25
5.4.200.0050.01012.34
5.4.190.0110.00412.11
5.4.180.0100.00512.26
5.4.170.0110.00412.07
5.4.160.0040.01112.32
5.4.150.0080.00612.21
5.4.140.0050.00912.40
5.4.130.0030.01112.13
5.4.120.0130.00312.10
5.4.110.0040.01012.11
5.4.100.0030.01112.09
5.4.90.0000.01512.12
5.4.80.0150.00012.07
5.4.70.0120.00412.10
5.4.60.0130.00312.18
5.4.50.0140.00612.15
5.4.40.0100.01012.27
5.4.30.0150.00012.14
5.4.20.0080.00612.20
5.4.10.0000.01412.11
5.4.00.0030.01012.17
5.3.290.0150.00912.88
5.3.280.0220.00012.94
5.3.270.0190.00312.77
5.3.260.0160.00812.73
5.3.250.0140.00712.71
5.3.240.0090.01312.59
5.3.230.0090.01212.73
5.3.220.0100.01412.71
5.3.210.0120.01212.73
5.3.200.0170.00712.62
5.3.190.0120.00912.86
5.3.180.0120.01212.90
5.3.170.0140.00912.85
5.3.160.0160.00612.85
5.3.150.0270.00412.91
5.3.140.0180.01112.95
5.3.130.0140.00912.78
5.3.120.0140.00812.79
5.3.110.0110.01213.06
5.3.100.0100.01012.76
5.3.90.0170.00412.94
5.3.80.0150.00612.89
5.3.70.0200.00712.73
5.3.60.0100.01612.83
5.3.50.0150.00812.67
5.3.40.0190.00312.80
5.3.30.0180.00412.75
5.3.20.0160.00512.71
5.3.10.0110.01112.55
5.3.00.0110.00812.56
5.2.170.0120.00511.86
5.2.160.0070.01311.96
5.2.150.0110.00711.96
5.2.140.0160.00311.80
5.2.130.0110.00811.99
5.2.120.0140.00412.00
5.2.110.0130.00911.78
5.2.100.0110.00711.79
5.2.90.0130.00611.78
5.2.80.0130.00711.74
5.2.70.0120.00811.74
5.2.60.0160.00311.64
5.2.50.0150.00611.71
5.2.40.0100.01011.79
5.2.30.0100.00711.72
5.2.20.0120.00611.54
5.2.10.0120.00511.39
5.2.00.0110.00811.50
5.1.60.0130.00310.82
5.1.50.0080.00710.75
5.1.40.0120.00410.84
5.1.30.0080.01110.95
5.1.20.0140.00410.84
5.1.10.0130.00310.82
5.1.00.0080.00810.57
5.0.50.0090.00310.51
5.0.40.0090.00410.51
5.0.30.0070.00710.51
5.0.20.0110.00310.51
5.0.10.0080.00810.51
5.0.00.0040.01210.51
4.4.90.0090.00010.51
4.4.80.0080.00010.51
4.4.70.0090.00010.51
4.4.60.0080.00010.51
4.4.50.0090.00010.51
4.4.40.0030.00610.51
4.4.30.0040.00410.51
4.4.20.0030.00610.51
4.4.10.0040.00410.51
4.4.00.0000.00810.51
4.3.110.0040.00410.51
4.3.100.0080.00010.51
4.3.90.0080.00210.51
4.3.80.0050.00510.51
4.3.70.0080.00410.51
4.3.60.0070.00410.51
4.3.50.0040.00510.51
4.3.40.0000.00910.51
4.3.30.0000.00710.51
4.3.20.0040.00410.51
4.3.10.0070.00010.51
4.3.00.0050.00210.51

preferences:
46.94 ms | 403 KiB | 5 Q