3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Example; class Base { static function whoAmI() { return static::class; } } class Example extends Base {} $what = 'Example'; var_dump($what::whoAmI());

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.40.0120.00318.73
8.3.30.0110.00318.55
8.3.20.0060.00320.25
8.3.10.0040.00423.66
8.3.00.0050.00323.54
8.2.170.0170.00322.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.78
8.2.120.0040.00426.35
8.2.110.0060.00319.24
8.2.100.0080.00417.80
8.2.90.0030.00519.08
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00918.04
8.2.50.0050.00318.09
8.2.40.0000.00822.11
8.2.30.0070.00019.36
8.2.20.0070.00017.74
8.2.10.0000.00717.99
8.2.00.0050.00218.00
8.1.270.0070.01321.89
8.1.260.0060.00328.09
8.1.250.0000.00828.09
8.1.240.0040.00422.66
8.1.230.0000.01017.76
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.00
8.1.180.0000.00718.10
8.1.170.0040.00418.52
8.1.160.0070.00020.70
8.1.150.0000.00720.48
8.1.140.0050.00319.43
8.1.130.0030.00317.51
8.1.120.0050.00317.47
8.1.110.0000.00817.30
8.1.100.0030.00517.40
8.1.90.0040.00417.29
8.1.80.0040.00417.30
8.1.70.0040.00417.32
8.1.60.0040.00417.49
8.1.50.0060.00317.57
8.1.40.0060.00617.54
8.1.30.0000.00817.68
8.1.20.0060.00317.52
8.1.10.0020.00517.57
8.1.00.0070.00017.50
8.0.300.0070.00018.84
8.0.290.0060.00316.63
8.0.280.0040.00418.38
8.0.270.0000.00717.19
8.0.260.0000.00617.22
8.0.250.0000.00616.83
8.0.240.0000.00816.86
8.0.230.0000.00817.00
8.0.220.0000.00916.80
8.0.210.0000.00716.91
8.0.200.0060.00016.96
8.0.190.0120.00016.96
8.0.180.0000.00716.89
8.0.170.0040.00416.94
8.0.160.0030.00516.95
8.0.150.0040.00816.87
8.0.140.0030.00516.83
8.0.130.0030.00313.27
8.0.120.0000.00716.82
8.0.110.0040.00416.89
8.0.100.0040.00416.97
8.0.90.0000.00816.92
8.0.80.0130.00316.95
8.0.70.0040.00416.78
8.0.60.0000.00816.93
8.0.50.0040.00416.95
8.0.30.0160.00316.98
8.0.20.0100.00817.40
8.0.10.0030.00517.05
8.0.00.0040.01316.66
7.4.330.0030.00316.84
7.4.320.0040.00416.45
7.4.300.0060.00316.46
7.4.290.0030.00316.64
7.4.280.0040.00416.59
7.4.270.0000.00716.61
7.4.260.0070.00016.41
7.4.250.0040.00416.54
7.4.240.0030.00316.59
7.4.230.0070.00016.60
7.4.220.0060.01316.52
7.4.210.0120.00216.43
7.4.200.0080.00016.42
7.4.160.0100.00616.73
7.4.150.0120.00617.40
7.4.140.0140.00517.86
7.4.130.0110.01116.59
7.4.120.0070.01016.55
7.4.110.0040.01416.64
7.4.100.0100.01416.52
7.4.90.0110.00816.61
7.4.80.0090.00919.39
7.4.70.0040.01216.46
7.4.60.0110.01016.42
7.4.50.0000.01516.44
7.4.40.0090.00916.45
7.4.30.0100.00916.52
7.4.10.0140.00314.75
7.4.00.0060.01014.93
7.3.330.0040.00413.17
7.3.320.0000.00613.32
7.3.310.0070.00016.21
7.3.300.0000.00716.36
7.3.290.0000.00716.26
7.3.280.0050.01216.38
7.3.270.0130.00317.40
7.3.260.0030.01416.59
7.3.250.0090.00916.42
7.3.240.0090.00816.35
7.3.230.0130.00316.41
7.3.210.0070.01116.66
7.3.200.0090.00919.39
7.3.190.0070.01016.64
7.3.180.0060.00916.39
7.3.170.0110.00616.43
7.3.160.0150.00916.38
7.3.130.0090.00915.13
7.3.120.0070.01115.01
7.3.110.0080.01015.04
7.3.100.0030.01114.90
7.3.90.0070.00714.84
7.3.80.0070.00714.82
7.3.70.0050.01114.75
7.3.60.0110.00314.60
7.3.50.0020.01114.70
7.3.40.0060.00714.66
7.3.30.0090.00314.76
7.3.20.0040.01116.66
7.3.10.0020.01216.51
7.3.00.0070.00816.44
7.2.330.0120.00616.40
7.2.320.0130.00316.29
7.2.310.0060.01016.57
7.2.300.0090.00616.66
7.2.290.0160.00016.35
7.2.260.0090.00914.82
7.2.250.0090.00914.98
7.2.240.0030.01315.10
7.2.230.0030.01015.02
7.2.220.0050.01114.86
7.2.210.0050.00814.95
7.2.200.0020.00814.97
7.2.190.0080.00814.92
7.2.180.0100.00514.93
7.2.170.0040.01214.90
7.2.160.0080.00314.86
7.2.150.0040.01216.66
7.2.140.0030.01016.69
7.2.130.0040.01116.80
7.2.120.0100.00016.92
7.2.110.0090.00316.89
7.2.100.0040.01116.80
7.2.90.0040.01516.88
7.2.80.0030.01316.73
7.2.70.0100.00716.77
7.2.60.0130.00116.58
7.2.50.0000.01316.70
7.2.40.0030.01316.91
7.2.30.0070.00716.63
7.2.20.0070.01016.79
7.2.10.0070.01116.78
7.2.00.0050.01017.90
7.1.330.0080.00715.61
7.1.320.0110.00515.80
7.1.310.0090.00615.53
7.1.300.0090.00615.56
7.1.290.0110.00415.70
7.1.280.0040.01315.54
7.1.270.0030.01215.71
7.1.260.0070.00415.73
7.1.250.0030.01315.56
7.1.240.0060.00315.48
7.1.230.0050.00515.74
7.1.220.0030.00915.66
7.1.210.0060.00615.55
7.1.200.0030.00815.63
7.1.190.0100.00715.77
7.1.180.0030.00615.64
7.1.170.0040.01015.78
7.1.160.0030.01015.75
7.1.150.0060.01015.50
7.1.140.0040.00815.76
7.1.130.0000.01815.55
7.1.120.0060.00915.70
7.1.110.0100.00315.70
7.1.100.0060.01116.69
7.1.90.0050.00815.76
7.1.80.0070.00715.61
7.1.70.0020.00916.25
7.1.60.0060.01117.56
7.1.50.0050.01116.18
7.1.40.0040.00815.70
7.1.30.0000.00815.37
7.1.20.0100.00015.64
7.1.10.0110.00315.51
7.1.00.0080.03718.99
7.0.330.0040.01115.41
7.0.320.0080.00015.20
7.0.310.0070.00415.26
7.0.300.0000.01415.13
7.0.290.0030.00615.27
7.0.280.0030.01015.05
7.0.270.0060.00815.09
7.0.260.0030.01015.49
7.0.250.0060.00615.38
7.0.240.0030.00915.24
7.0.230.0030.00615.49
7.0.220.0030.00915.55
7.0.210.0070.00415.11
7.0.200.0040.00715.91
7.0.190.0030.01215.32
7.0.180.0070.01015.06
7.0.170.0030.01015.08
7.0.160.0030.01015.41
7.0.150.0090.00615.34
7.0.140.0000.00815.52
7.0.130.0030.00915.41
7.0.120.0070.00715.38
7.0.110.0000.01215.33
7.0.100.0060.00315.34
7.0.90.0060.00615.14
7.0.80.0030.01015.39
7.0.70.0000.01315.38
7.0.60.0050.04618.47
7.0.50.0060.04516.68
7.0.40.0070.04916.73
7.0.30.0100.02716.85
7.0.20.0080.02716.81
7.0.10.0050.02516.77
7.0.00.0050.02616.79
5.6.400.0080.00414.09
5.6.390.0100.00014.16
5.6.380.0030.00814.04
5.6.370.0000.01714.09
5.6.360.0080.00614.18
5.6.350.0100.00314.52
5.6.340.0070.00714.02
5.6.330.0030.01014.34
5.6.320.0000.01514.21
5.6.310.0030.00714.23
5.6.300.0080.00814.29
5.6.290.0080.00314.31
5.6.280.0030.01817.70
5.6.270.0070.00714.45
5.6.260.0060.00314.42
5.6.250.0000.01214.32
5.6.240.0040.00414.30
5.6.230.0030.00613.97
5.6.220.0030.00914.20
5.6.210.0050.03117.46
5.6.200.0000.03216.25
5.6.190.0040.02817.25
5.6.180.0160.03117.28
5.6.170.0100.02917.54
5.6.160.0060.02417.27
5.6.150.0070.04716.13
5.6.140.0090.02016.34
5.6.130.0110.03116.39
5.6.120.0100.03017.46
5.6.110.0090.04017.72
5.6.100.0140.04117.81
5.6.90.0050.04617.63
5.6.80.0030.03117.34
5.6.70.0080.00814.15
5.6.60.0030.01214.07
5.6.50.0060.00614.05
5.6.40.0100.00614.08
5.6.30.0000.00813.89
5.6.20.0100.00314.37
5.6.10.0040.01114.29
5.6.00.0000.01313.97
5.5.380.0030.00814.25
5.5.370.0030.01013.93
5.5.360.0070.00713.91
5.5.350.0150.04517.18
5.5.340.0030.02516.14
5.5.330.0060.02717.26
5.5.320.0230.03817.14
5.5.310.0200.04517.12
5.5.300.0050.04216.18
5.5.290.0050.04216.04
5.5.280.0040.04517.40
5.5.270.0070.02217.31
5.5.260.0110.03317.27
5.5.250.0060.03417.16
5.5.240.0150.03817.24
5.5.230.0040.01113.97
5.5.220.0040.01213.89
5.5.210.0000.00914.23
5.5.200.0030.00914.13
5.5.190.0030.00614.10
5.5.180.0070.00714.08
5.5.170.0060.00613.84
5.5.160.0030.00913.91
5.5.150.0060.00313.63
5.5.140.0000.00914.18
5.5.130.0030.01014.04
5.5.120.0070.00714.20
5.5.110.0040.01113.98
5.5.100.0100.00314.24
5.5.90.0100.00313.81
5.5.80.0080.00014.15
5.5.70.0030.01213.72
5.5.60.0100.00314.18
5.5.50.0060.00614.13
5.5.40.0040.00813.62
5.5.30.0060.00313.84
5.5.20.0030.00613.80
5.5.10.0060.00614.24
5.5.00.0150.00014.07

preferences:
52.97 ms | 400 KiB | 5 Q