3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __construct() { echo 'direct owner: '.__CLASS__."\n"; echo 'called as part of: '.self::class."\n"; echo 'called by instance of: '.static::class."\n"; } } class B extends A { } class C { function __construct() { B::A(); } } new C();

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.0030.01416.88
8.3.50.0110.00721.93
8.3.40.0040.01118.76
8.3.30.0180.00018.72
8.3.20.0040.00420.16
8.3.10.0040.00421.78
8.3.00.0040.00421.63
8.2.180.0140.00716.50
8.2.170.0140.00722.96
8.2.160.0070.00722.26
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00320.88
8.2.120.0000.00726.35
8.2.110.0000.00922.08
8.2.100.0070.00417.59
8.2.90.0040.00417.90
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0060.00317.80
8.2.50.0000.00818.09
8.2.40.0050.00322.33
8.2.30.0000.00819.30
8.2.20.0070.00417.73
8.2.10.0040.00418.03
8.2.00.0000.00717.86
8.1.280.0030.01725.92
8.1.270.0140.00421.98
8.1.260.0070.00328.09
8.1.250.0050.00228.09
8.1.240.0040.00422.42
8.1.230.0070.00320.89
8.1.220.0000.00817.74
8.1.210.0040.00418.90
8.1.200.0060.00317.35
8.1.190.0000.00717.10
8.1.180.0040.00418.10
8.1.170.0120.00018.56
8.1.160.0070.00020.59
8.1.150.0000.00718.79
8.1.140.0050.00319.31
8.1.130.0040.00417.51
8.1.120.0000.00717.34
8.1.110.0040.00417.23
8.1.100.0050.00317.36
8.1.90.0040.00417.32
8.1.80.0000.00817.29
8.1.70.0000.00717.23
8.1.60.0000.00917.46
8.1.50.0080.00017.46
8.1.40.0000.00817.33
8.1.30.0000.00817.58
8.1.20.0080.00017.57
8.1.10.0040.00417.52
8.1.00.0040.00417.37
8.0.300.0000.00819.89
8.0.290.0060.00316.63
8.0.280.0030.00318.48
8.0.270.0000.00717.18
8.0.260.0000.00617.09
8.0.250.0030.00616.98
8.0.240.0000.00616.92
8.0.230.0040.00416.84
8.0.220.0000.00916.77
8.0.210.0030.00516.82
8.0.200.0000.00616.98
8.0.190.0030.00516.80
8.0.180.0040.00416.94
8.0.170.0040.00416.79
8.0.160.0030.00316.89
8.0.150.0050.00216.78
8.0.140.0000.00716.88
8.0.130.0000.00613.27
8.0.120.0040.00416.82
8.0.110.0030.00516.96
8.0.100.0070.00016.82
8.0.90.0070.00016.99
8.0.80.0000.01816.77
8.0.70.0070.00016.86
8.0.60.0000.00816.74
8.0.50.0030.00516.95
8.0.30.0080.01317.05
8.0.20.0170.00317.40
8.0.10.0040.00416.85
8.0.00.0090.00916.66
7.4.330.0000.00416.69
7.4.320.0040.00416.43
7.4.300.0030.00316.49
7.4.290.0030.00316.50
7.4.280.0000.00716.54
7.4.270.0040.00416.50
7.4.260.0060.00316.52
7.4.250.0030.00316.50
7.4.240.0040.00416.44
7.4.230.0030.00316.40
7.4.220.0120.00616.52
7.4.210.0120.00616.45
7.4.200.0030.00316.35
7.4.160.0060.01316.36
7.4.150.0120.01217.40
7.4.140.0090.01217.86
7.4.130.0060.01116.54
7.4.120.0080.01316.55
7.4.110.0130.00316.52
7.4.100.0110.00716.31
7.4.90.0070.01016.53
7.4.80.0160.00019.39
7.4.70.0060.01016.34
7.4.60.0090.01516.47
7.4.50.0080.00516.49
7.4.40.0030.01416.34
7.4.30.0140.00416.30
7.4.10.0060.01015.02
7.4.00.0070.01014.73
7.3.330.0030.00313.42
7.3.320.0000.00513.33
7.3.310.0070.00016.17
7.3.300.0000.00716.37
7.3.290.0110.00516.28
7.3.280.0090.00716.29
7.3.270.0130.00617.40
7.3.260.0110.00616.62
7.3.250.0120.00516.33
7.3.240.0110.00816.36
7.3.230.0130.00316.52
7.3.210.0070.01016.26
7.3.200.0080.00816.25
7.3.190.0150.00616.33
7.3.180.0170.00016.38
7.3.170.0130.00916.50
7.3.160.0060.00916.38
7.3.130.0100.00714.76
7.3.120.0050.01214.94
7.3.110.0070.01014.74
7.3.100.0070.00714.79
7.3.90.0110.00514.80
7.3.80.0060.00714.88
7.3.70.0070.00514.77
7.3.60.0050.00714.80
7.3.50.0030.01114.79
7.3.40.0050.00614.64
7.3.30.0070.00514.64
7.3.20.0090.00316.64
7.3.10.0030.01116.69
7.3.00.0030.00816.39
7.2.330.0190.00016.66
7.2.320.0060.01516.68
7.2.310.0070.01416.32
7.2.300.0100.00716.61
7.2.290.0090.00616.61
7.2.260.0100.00714.69
7.2.250.0070.01114.90
7.2.240.0080.00915.00
7.2.230.0090.00814.92
7.2.220.0040.01115.03
7.2.210.0070.00714.91
7.2.200.0060.00614.77
7.2.190.0050.00914.85
7.2.180.0090.00714.67
7.2.170.0060.00714.68
7.2.160.0060.00914.79
7.2.150.0000.01416.89
7.2.140.0060.00316.77
7.2.130.0000.00916.57
7.2.120.0000.00916.82
7.2.110.0130.00616.65
7.2.100.0030.01216.70
7.2.90.0030.00916.96
7.2.80.0070.01016.89
7.2.70.0150.00016.71
7.2.60.0080.00716.69
7.2.50.0070.00716.63
7.2.40.0000.01216.90
7.2.30.0030.01316.93
7.2.20.0000.00916.94
7.2.10.0030.01016.59
7.2.00.0040.01117.97
7.1.330.0050.00915.54
7.1.320.0070.00715.49
7.1.310.0050.01015.73
7.1.300.0020.01115.75
7.1.290.0000.01315.59
7.1.280.0040.00915.53
7.1.270.0020.01215.61
7.1.260.0080.00615.73
7.1.250.0070.00715.74
7.1.240.0000.01415.66
7.1.230.0090.00315.68
7.1.220.0070.00715.61
7.1.210.0060.01215.61
7.1.200.0030.00815.52
7.1.190.0030.00615.78
7.1.180.0000.01415.73
7.1.170.0000.01715.46
7.1.160.0070.00715.33
7.1.150.0070.00715.41
7.1.140.0070.00715.75
7.1.130.0060.00315.57
7.1.120.0000.00815.66
7.1.110.0080.00015.57
7.1.100.0070.00416.91
7.1.90.0090.00615.68
7.1.80.0030.00615.77
7.1.70.0060.00316.28
7.1.60.0060.01117.37
7.1.50.0070.01016.10
7.1.40.0040.01515.64
7.1.30.0030.00915.66
7.1.20.0080.00015.68
7.1.10.0040.01215.76
7.1.00.0030.04319.01
7.0.330.0030.00515.23
7.0.320.0070.00715.33
7.0.310.0060.00615.12
7.0.300.0030.01315.47
7.0.290.0030.00515.30
7.0.280.0000.00815.35
7.0.270.0000.01415.12
7.0.260.0030.00615.14
7.0.250.0000.01015.25
7.0.240.0100.00315.26
7.0.230.0040.00415.14
7.0.220.0000.01015.26
7.0.210.0030.01315.49
7.0.200.0050.00715.90
7.0.190.0070.01115.11
7.0.180.0060.00615.32
7.0.170.0030.00715.02
7.0.160.0100.00315.34
7.0.150.0110.00415.32
7.0.140.0000.01115.33
7.0.130.0040.00815.36
7.0.120.0100.00315.18
7.0.110.0080.00015.42
7.0.100.0090.00015.54
7.0.90.0030.00914.97
7.0.80.0110.00015.30
7.0.70.0070.00715.31
7.0.60.0080.04818.48
7.0.50.0070.02416.62
7.0.40.0030.04116.78
7.0.30.0150.04216.74
7.0.20.0180.04616.71
7.0.10.0030.04416.80
7.0.00.0050.02716.85
5.6.400.0060.00614.47
5.6.390.0040.01114.14
5.6.380.0090.00914.26
5.6.370.0070.00414.05
5.6.360.0060.00314.47
5.6.350.0070.00414.01
5.6.340.0060.00314.09
5.6.330.0080.00414.47
5.6.320.0150.00014.29
5.6.310.0000.01614.27
5.6.300.0000.00814.54
5.6.290.0090.00014.39
5.6.280.0040.02117.47
5.6.270.0060.01014.33
5.6.260.0030.00614.22
5.6.250.0080.00814.46
5.6.240.0090.00613.93
5.6.230.0040.00414.26
5.6.220.0040.00414.22
5.6.210.0100.02217.50
5.6.200.0030.04516.37
5.6.190.0040.03017.43
5.6.180.0160.02617.15
5.6.170.0120.02517.48
5.6.160.0080.02817.33
5.6.150.0050.02816.26
5.6.140.0030.04816.16
5.6.130.0080.04216.29
5.6.120.0070.03717.58
5.6.110.0100.04217.64
5.6.100.0100.05117.72
5.6.90.0060.03817.70
5.6.80.0030.02417.24
5.6.70.0040.00414.10
5.6.60.0060.00914.13
5.6.50.0070.00414.04
5.6.40.0050.00313.88
5.6.30.0030.00614.25
5.6.20.0030.00714.20
5.6.10.0090.00614.17
5.6.00.0070.00714.15
5.5.380.0090.00313.92
5.5.370.0040.00814.07
5.5.360.0080.00414.05
5.5.350.0070.02417.13
5.5.340.0120.03816.14
5.5.330.0050.02717.31
5.5.320.0250.03417.09
5.5.310.0180.03617.04
5.5.300.0100.03916.29
5.5.290.0070.03216.20
5.5.280.0070.04417.42
5.5.270.0100.02717.59
5.5.260.0080.04017.31
5.5.250.0100.04117.38
5.5.240.0160.03817.09
5.5.230.0000.00813.94
5.5.220.0110.00414.10
5.5.210.0070.00714.13
5.5.200.0060.00314.41
5.5.190.0040.00814.13
5.5.180.0040.01113.80
5.5.170.0070.00714.10
5.5.160.0080.00014.20
5.5.150.0110.00413.86
5.5.140.0030.00713.85
5.5.130.0080.00014.03
5.5.120.0030.00713.96
5.5.110.0130.00314.25
5.5.100.0060.00614.18
5.5.90.0030.01014.01
5.5.80.0040.00414.04
5.5.70.0090.00614.13
5.5.60.0060.00314.12
5.5.50.0040.00713.98
5.5.40.0060.00713.69
5.5.30.0090.00614.16
5.5.20.0040.00413.89
5.5.10.0030.01614.29
5.5.00.0040.01114.13

preferences:
59.5 ms | 401 KiB | 5 Q