3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static $abc; function __construct() { var_dump(self::$abc); } } class Bar extends Foo { } $rf = new ReflectionClass('Bar'); $rf->setStaticPropertyValue('abc', 'hi'); $foo = $rf->newInstance();

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.0110.00416.50
8.3.50.0000.01416.38
8.3.40.0120.00318.63
8.3.30.0130.00318.43
8.3.20.0000.00720.18
8.3.10.0040.00421.90
8.3.00.0080.00023.36
8.2.180.0120.00316.50
8.2.170.0190.00022.96
8.2.160.0140.00320.35
8.2.150.0040.00424.18
8.2.140.0120.00324.66
8.2.130.0080.00019.83
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0070.00418.04
8.2.90.0040.00419.30
8.2.80.0080.00018.04
8.2.70.0060.00317.61
8.2.60.0080.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00422.13
8.2.30.0080.00019.39
8.2.20.0030.00517.46
8.2.10.0070.00017.90
8.2.00.0000.00717.89
8.1.280.0110.00425.92
8.1.270.0090.00624.05
8.1.260.0070.00328.09
8.1.250.0040.00428.09
8.1.240.0050.00522.09
8.1.230.0060.00619.23
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0080.00017.23
8.1.190.0090.00017.10
8.1.180.0070.00018.10
8.1.170.0000.00818.66
8.1.160.0030.00520.69
8.1.150.0040.00418.84
8.1.140.0000.00819.50
8.1.130.0030.00617.67
8.1.120.0030.00317.46
8.1.110.0030.00517.34
8.1.100.0000.00817.29
8.1.90.0040.00417.39
8.1.80.0040.00417.29
8.1.70.0000.00717.36
8.1.60.0070.00017.58
8.1.50.0000.00917.36
8.1.40.0000.00817.54
8.1.30.0000.00817.62
8.1.20.0050.00317.46
8.1.10.0020.00517.61
8.1.00.0040.00417.39
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0050.00218.24
8.0.270.0070.00017.16
8.0.260.0070.00017.05
8.0.250.0070.00016.90
8.0.240.0030.00316.77
8.0.230.0000.00716.89
8.0.220.0040.00416.82
8.0.210.0040.00416.81
8.0.200.0030.00316.84
8.0.190.0030.00616.88
8.0.180.0040.00416.85
8.0.170.0060.00316.86
8.0.160.0000.00716.72
8.0.150.0070.00016.80
8.0.140.0030.00316.68
8.0.130.0000.00513.23
8.0.120.0040.00416.82
8.0.110.0080.00016.83
8.0.100.0070.00016.86
8.0.90.0000.00716.69
8.0.80.0040.01116.73
8.0.70.0040.00416.67
8.0.60.0040.00416.72
8.0.50.0000.00816.68
8.0.30.0080.00717.09
8.0.20.0120.00617.40
8.0.10.0000.00716.79
8.0.00.0080.01416.65
7.4.330.0030.00316.76
7.4.320.0000.00616.41
7.4.300.0070.00016.34
7.4.290.0000.00716.63
7.4.280.0030.00616.62
7.4.270.0030.00316.41
7.4.260.0030.00316.38
7.4.250.0030.00516.59
7.4.240.0040.00316.51
7.4.230.0040.00416.50
7.4.220.0060.01316.60
7.4.210.0120.00916.43
7.4.200.0000.00716.67
7.4.160.0120.00416.69
7.4.150.0130.01017.40
7.4.140.0100.00817.86
7.4.130.0080.00816.54
7.4.120.0110.01016.49
7.4.110.0030.01316.36
7.4.100.0070.01116.60
7.4.90.0100.00716.43
7.4.80.0190.00019.39
7.4.70.0030.01316.33
7.4.60.0090.01216.48
7.4.50.0110.00416.14
7.4.40.0110.00716.41
7.4.30.0130.00316.43
7.4.10.0060.00914.81
7.4.00.0070.00714.88
7.3.330.0000.00513.14
7.3.320.0050.00213.11
7.3.310.0050.00216.32
7.3.300.0000.00716.28
7.3.290.0090.00716.31
7.3.280.0050.01016.29
7.3.270.0110.00617.40
7.3.260.0070.00916.33
7.3.250.0100.00716.33
7.3.240.0150.00516.37
7.3.230.0100.00616.39
7.3.210.0100.00716.55
7.3.200.0130.00319.39
7.3.190.0120.00616.38
7.3.180.0120.00416.23
7.3.170.0160.00716.50
7.3.160.0110.00516.37
7.3.130.0060.01214.71
7.3.120.0100.01014.43
7.3.110.0120.00615.04
7.3.100.0040.01114.88
7.3.90.0090.00614.99
7.3.80.0000.01414.76
7.3.70.0070.00414.56
7.3.60.0060.00314.85
7.3.50.0030.00914.93
7.3.40.0090.00314.70
7.3.30.0060.00814.56
7.3.20.0030.00916.59
7.3.10.0080.00316.65
7.3.00.0030.00916.46
7.2.330.0060.01116.24
7.2.320.0090.00916.68
7.2.310.0080.01516.65
7.2.300.0040.01316.72
7.2.290.0040.01516.61
7.2.260.0000.01615.13
7.2.250.0060.00915.13
7.2.240.0030.01015.02
7.2.230.0170.00014.46
7.2.220.0060.00915.18
7.2.210.0000.01314.84
7.2.200.0030.01214.95
7.2.190.0110.00415.02
7.2.180.0110.00315.02
7.2.170.0070.00714.63
7.2.160.0100.00315.01
7.2.150.0090.00616.64
7.2.140.0080.00816.96
7.2.130.0120.00316.92
7.2.120.0030.00916.63
7.2.110.0040.01116.94
7.2.100.0110.00816.50
7.2.90.0070.01016.91
7.2.80.0060.00616.63
7.2.70.0030.01616.52
7.2.60.0120.00316.91
7.2.50.0150.00016.73
7.2.40.0070.00716.89
7.2.30.0070.00716.78
7.2.20.0000.01416.77
7.2.10.0030.00916.86
7.2.00.0030.00717.95
7.1.330.0100.00315.54
7.1.320.0100.00315.63
7.1.310.0030.00515.83
7.1.300.0080.00415.54
7.1.290.0060.00615.55
7.1.280.0040.01115.73
7.1.270.0030.00915.71
7.1.260.0040.00815.67
7.1.250.0120.00315.70
7.1.240.0030.00715.77
7.1.230.0090.00615.71
7.1.220.0060.00615.57
7.1.210.0140.00015.48
7.1.200.0100.00515.65
7.1.190.0030.01015.83
7.1.180.0030.01015.42
7.1.170.0040.00815.48
7.1.160.0000.01415.79
7.1.150.0030.00515.65
7.1.140.0040.00815.71
7.1.130.0080.00415.74
7.1.120.0030.00615.83
7.1.110.0030.01015.62
7.1.100.0050.00716.83
7.1.90.0030.00615.77
7.1.80.0100.00315.48
7.1.70.0070.00816.46
7.1.60.0050.01117.32
7.1.50.0030.01416.23
7.1.40.0050.00515.76
7.1.30.0030.00715.61
7.1.20.0030.01015.46
7.1.10.0030.01315.79
7.1.00.0020.04219.05
7.0.330.0030.00615.18
7.0.320.0000.00915.06
7.0.310.0030.01315.06
7.0.300.0030.01015.13
7.0.290.0060.00615.25
7.0.280.0060.00615.19
7.0.270.0040.00414.94
7.0.260.0000.01215.27
7.0.250.0040.01114.99
7.0.240.0030.00615.34
7.0.230.0000.01115.35
7.0.220.0030.01015.14
7.0.210.0030.00915.33
7.0.200.0020.00915.97
7.0.190.0030.01315.36
7.0.180.0030.01015.58
7.0.170.0060.01215.10
7.0.160.0000.01515.23
7.0.150.0070.00715.50
7.0.140.0040.00715.42
7.0.130.0030.01015.32
7.0.120.0140.00015.26
7.0.110.0060.00315.45
7.0.100.0070.00415.46
7.0.90.0070.00415.17
7.0.80.0090.00415.36
7.0.70.0070.00715.44
7.0.60.0180.03618.47
7.0.50.0010.02416.66
7.0.40.0070.02916.68
7.0.30.0140.02116.72
7.0.20.0150.02516.80
7.0.10.0020.03916.74
7.0.00.0070.04516.85
5.6.400.0030.00914.48
5.6.390.0030.00614.13
5.6.380.0040.00714.55
5.6.370.0040.01114.01
5.6.360.0120.00314.34
5.6.350.0000.01414.55
5.6.340.0030.00614.23
5.6.330.0040.01114.28
5.6.320.0000.01114.01
5.6.310.0000.01414.21
5.6.300.0090.00314.09
5.6.290.0070.00414.46
5.6.280.0050.02017.58
5.6.270.0040.01214.64
5.6.260.0030.00714.60
5.6.250.0060.00614.41
5.6.240.0030.01014.36
5.6.230.0060.00314.43
5.6.220.0100.00614.38
5.6.210.0030.04117.39
5.6.200.0050.02316.31
5.6.190.0090.03417.56
5.6.180.0110.04017.32
5.6.170.0130.04317.30
5.6.160.0080.03517.58
5.6.150.0030.04716.48
5.6.140.0080.02516.31
5.6.130.0090.04316.29
5.6.120.0050.02717.54
5.6.110.0080.04817.53
5.6.100.0050.05017.69
5.6.90.0090.04317.62
5.6.80.0040.04517.47
5.6.70.0040.01214.27
5.6.60.0000.01014.26
5.6.50.0120.00014.38
5.6.40.0060.00613.94
5.6.30.0040.00414.20
5.6.20.0100.01014.18
5.6.10.0080.00814.18
5.6.00.0110.00414.47
5.5.380.0080.00314.39
5.5.370.0030.00914.08
5.5.360.0080.00514.39
5.5.350.0090.04217.52
5.5.340.0060.02116.05
5.5.330.0150.02017.33
5.5.320.0310.04317.23
5.5.310.0130.04317.10
5.5.300.0170.03316.28
5.5.290.0090.03716.22
5.5.280.0080.02017.52
5.5.270.0050.02717.56
5.5.260.0020.04217.56
5.5.250.0100.03517.47
5.5.240.0150.03717.06
5.5.230.0060.00614.07
5.5.220.0110.00014.31
5.5.210.0080.00414.20
5.5.200.0000.00914.23
5.5.190.0090.00013.84
5.5.180.0000.01514.09
5.5.170.0040.01113.83
5.5.160.0030.01314.22
5.5.150.0100.00714.29
5.5.140.0090.00614.11
5.5.130.0120.00014.34
5.5.120.0000.01614.11
5.5.110.0030.01014.22
5.5.100.0080.00814.39
5.5.90.0070.00714.26
5.5.80.0000.00914.16
5.5.70.0070.00714.34
5.5.60.0000.01414.29
5.5.50.0000.01514.38
5.5.40.0000.00914.28
5.5.30.0030.01014.37
5.5.20.0000.01114.31
5.5.10.0030.00614.23
5.5.00.0050.00314.25

preferences:
59.66 ms | 400 KiB | 5 Q