3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static $myVariable; public static function set($name, $value) { if (true === property_exists('MyClass', $name)) { self::$$name = $value; } } } MyClass::set('myVariable', 123); echo MyClass::myVariable;

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.70.0120.00616.63
8.3.60.0090.00916.75
8.3.50.0100.00716.56
8.3.40.0220.00018.99
8.3.30.0120.00318.83
8.3.20.0080.00018.86
8.3.10.0080.00018.73
8.3.00.0000.00819.39
8.2.180.0160.00318.54
8.2.170.0070.00722.96
8.2.160.0080.00819.09
8.2.150.0060.00324.18
8.2.140.0100.01024.66
8.2.130.0080.00026.16
8.2.120.0030.00519.77
8.2.110.0030.00622.07
8.2.100.0040.00817.90
8.2.90.0000.00819.22
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0000.00818.02
8.2.50.0000.00818.04
8.2.40.0080.00019.35
8.2.30.0080.00017.73
8.2.20.0030.00617.82
8.2.10.0040.00417.75
8.2.00.0100.00017.64
8.1.280.0150.00325.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00022.14
8.1.230.0140.00017.60
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00918.10
8.1.170.0080.00017.62
8.1.160.0000.00819.06
8.1.150.0050.00218.56
8.1.140.0120.00017.42
8.1.130.0000.00717.45
8.1.120.0000.00717.50
8.1.110.0000.00817.35
8.1.100.0000.00717.46
8.1.90.0000.00717.36
8.1.80.0030.00317.35
8.1.70.0030.00317.48
8.1.60.0000.00817.62
8.1.50.0000.00717.41
8.1.40.0070.00017.49
8.1.30.0000.00817.68
8.1.20.0080.00417.63
8.1.10.0070.00017.55
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.48
8.0.270.0000.00717.37
8.0.260.0040.00417.00
8.0.250.0030.00616.98
8.0.240.0030.00317.07
8.0.230.0070.00016.95
8.0.220.0050.00317.03
8.0.210.0030.00316.85
8.0.200.0070.00017.05
8.0.190.0030.00316.92
8.0.180.0070.00017.00
8.0.170.0040.00416.91
8.0.160.0000.00716.85
8.0.150.0000.00816.90
8.0.140.0000.00716.93
8.0.130.0000.00713.39
8.0.120.0000.00916.82
8.0.110.0050.00216.91
8.0.100.0000.00816.85
8.0.90.0000.00716.83
8.0.80.0110.00416.99
8.0.70.0000.00716.98
8.0.60.0060.00316.95
8.0.50.0030.00516.91
8.0.30.0070.01017.27
8.0.20.0140.00817.14
8.0.10.0040.00417.12
8.0.00.0060.01216.89
7.4.330.0000.00712.92
7.4.320.0000.00616.52
7.4.300.0030.00316.50
7.4.290.0090.00316.64
7.4.280.0000.00816.55
7.4.270.0040.00416.52
7.4.260.0000.00613.28
7.4.250.0050.00216.52
7.4.240.0000.00816.58
7.4.230.0040.00416.29
7.4.220.0130.01316.50
7.4.210.0100.00916.70
7.4.200.0080.00016.68
7.4.190.0000.00816.57
7.4.160.0120.00316.39
7.4.150.0190.00016.35
7.4.140.0140.00417.86
7.4.130.0090.01216.56
7.4.120.0070.01116.69
7.4.110.0030.02016.53
7.4.100.0070.01016.79
7.4.90.0110.00716.75
7.4.80.0030.01319.39
7.4.70.0160.00316.46
7.4.60.0060.00916.63
7.4.50.0040.00416.60
7.4.40.0060.00916.56
7.4.30.0100.01016.47
7.4.00.0090.00915.14
7.3.330.0040.00413.26
7.3.320.0050.00013.42
7.3.310.0030.00316.29
7.3.300.0060.00016.36
7.3.290.0050.01116.40
7.3.280.0100.01016.43
7.3.270.0120.01216.35
7.3.260.0100.00916.52
7.3.240.0090.00916.50
7.3.230.0100.00716.38
7.3.210.0100.00716.45
7.3.200.0090.00616.33
7.3.190.0070.01016.52
7.3.180.0060.01416.35
7.3.170.0100.00716.47
7.3.160.0080.00816.34
7.3.120.0100.00717.15
7.3.110.0140.00017.15
7.3.100.0060.00617.15
7.3.90.0000.00917.15
7.3.80.0060.00617.15
7.3.70.0060.00317.15
7.3.60.0070.00317.15
7.3.50.0040.01117.15
7.3.40.0000.01017.15
7.3.30.0100.00617.15
7.3.20.0060.00917.15
7.3.10.0030.01016.89
7.3.00.0050.00916.86
7.2.330.0030.01616.70
7.2.320.0070.01016.43
7.2.310.0070.01316.49
7.2.300.0100.01316.58
7.2.290.0080.01116.36
7.2.240.0060.00617.15
7.2.230.0070.00717.15
7.2.220.0030.01017.15
7.2.210.0070.00717.15
7.2.200.0070.01017.15
7.2.190.0070.00717.15
7.2.180.0070.01117.15
7.2.170.0090.00617.15
7.2.160.0060.01217.15
7.2.150.0040.01417.15
7.2.140.0060.00917.15
7.2.130.0090.00617.05
7.2.120.0110.00316.96
7.2.110.0070.00816.93
7.2.100.0080.00817.05
7.2.90.0070.00717.06
7.2.80.0090.00517.04
7.2.70.0030.00917.11
7.2.60.0240.01216.32
7.2.50.0060.00816.94
7.2.40.0030.01217.08
7.2.30.0070.00917.01
7.2.20.0110.00516.97
7.2.10.0050.01017.06
7.2.00.0060.00817.82
7.1.330.0070.00717.15
7.1.320.0030.01217.15
7.1.310.0120.00317.15
7.1.300.0000.00817.15
7.1.290.0000.01617.15
7.1.280.0030.00617.15
7.1.270.0030.00917.15
7.1.260.0000.01717.15
7.1.250.0030.00916.34
7.1.240.0090.00015.65
7.1.230.0000.01715.89
7.1.220.0060.00615.72
7.1.210.0000.01615.81
7.1.200.0060.00815.77
7.1.190.0060.00615.86
7.1.180.0040.00416.01
7.1.170.0070.00715.66
7.1.160.0000.01415.63
7.1.150.0070.00715.73
7.1.140.0060.00615.84
7.1.130.0030.00715.60
7.1.120.0060.00915.86
7.1.110.0140.00015.93
7.1.100.0040.00717.05
7.1.90.0040.00815.75
7.1.80.0130.00015.80
7.1.70.0030.00516.60
7.1.60.0090.00817.55
7.1.50.0090.00816.29
7.1.40.0030.00815.58
7.1.30.0070.00315.78
7.1.20.0040.01115.84
7.1.10.0100.00315.70
7.1.00.0000.02419.01
7.0.330.0100.00315.34
7.0.320.0100.00315.31
7.0.310.0030.01015.53
7.0.300.0050.00415.48
7.0.290.0040.00415.38
7.0.280.0040.01115.29
7.0.270.0090.00315.38
7.0.260.0030.01015.43
7.0.250.0100.00715.52
7.0.240.0090.00615.57
7.0.230.0000.00815.36
7.0.220.0000.01615.36
7.0.210.0070.00715.58
7.0.200.0050.00816.06
7.0.190.0060.00615.49
7.0.180.0040.01215.40
7.0.170.0080.00015.59
7.0.160.0100.00315.60
7.0.150.0030.00915.39
7.0.140.0080.03718.77
7.0.130.0060.00615.45
7.0.120.0030.04218.65
7.0.110.0040.00815.58
7.0.100.0090.00415.49
7.0.90.0000.01415.57
7.0.80.0080.00415.39
7.0.70.0060.00615.39
7.0.60.0030.02617.59
7.0.50.0080.02016.57
7.0.40.0070.04515.61
7.0.30.0090.03815.64
7.0.20.0070.02815.71
7.0.10.0050.04015.65
7.0.00.0070.04515.63
5.6.380.0090.00014.36
5.6.370.0110.00414.13
5.6.360.0000.01614.64
5.6.350.0030.01014.25
5.6.340.0080.00614.34
5.6.330.0070.00714.25
5.6.320.0030.01414.33
5.6.310.0060.00914.59
5.6.300.0100.00313.98
5.6.290.0070.00714.29
5.6.280.0050.04117.55
5.6.270.0040.00814.19
5.6.260.0090.00314.43
5.6.250.0090.00614.31
5.6.240.0070.00714.39
5.6.230.0110.00314.27
5.6.220.0070.00414.49
5.6.210.0080.03017.54
5.6.200.0050.04416.32
5.6.190.0020.04416.32
5.6.180.0030.04616.20
5.6.170.0070.04216.27
5.6.160.0020.03516.17
5.6.150.0070.04516.19
5.6.140.0050.02416.34
5.6.130.0070.04316.10
5.6.120.0050.04116.36
5.6.110.0070.03016.29
5.6.100.0050.04016.40
5.6.90.0080.04316.24
5.6.80.0070.04415.82
5.6.70.0050.04315.93
5.6.60.0050.03715.99
5.6.50.0050.02315.94
5.6.40.0160.02015.93
5.6.30.0100.02515.92
5.6.20.0050.04715.99
5.6.10.0050.04115.92
5.6.00.0080.03515.92
5.5.380.0060.00311.44
5.5.370.0060.00311.46
5.5.360.0090.00310.98
5.5.350.0160.03215.69
5.5.340.0070.02014.54
5.5.330.0030.02314.75
5.5.320.0000.04814.61
5.5.310.0060.02614.49
5.5.300.0080.04014.54
5.5.290.0030.04314.66
5.5.280.0020.03214.60
5.5.270.0070.04314.37
5.5.260.0070.03114.66
5.5.250.0030.04314.32
5.5.240.0060.03914.14
5.5.230.0030.04514.32
5.5.220.0030.04214.32
5.5.210.0050.02314.33
5.5.200.0100.03614.28
5.5.190.0040.03714.19
5.5.180.0070.02714.16
5.5.170.0000.00611.23
5.5.160.0050.02614.28
5.5.150.0090.02614.17
5.5.140.0050.04014.11
5.5.130.0110.02714.31
5.5.120.0050.03514.13
5.5.110.0010.02614.23
5.5.100.0000.03914.17
5.5.90.0080.03514.08
5.5.80.0050.03314.21
5.5.70.0060.02114.30
5.5.60.0050.02314.25
5.5.50.0060.02014.13
5.5.40.0020.02414.21
5.5.30.0030.02014.11
5.5.20.0030.02014.14
5.5.10.0050.01814.15
5.5.00.0080.01814.03
5.4.450.0040.02615.25
5.4.440.0070.03015.14
5.4.430.0030.04515.25
5.4.420.0050.04115.17
5.4.410.0050.04015.17
5.4.400.0030.04215.16
5.4.390.0100.02514.84
5.4.380.0090.03715.04
5.4.370.0070.02314.94
5.4.360.0080.04014.95
5.4.350.0040.04215.02
5.4.340.0030.02514.90
5.4.330.0030.00911.11
5.4.320.0020.04615.04
5.4.310.0060.04114.80
5.4.300.0090.03214.97
5.4.290.0050.04214.94
5.4.280.0070.02714.85
5.4.270.0030.03715.02
5.4.260.0090.03615.12
5.4.250.0050.04315.11
5.4.240.0030.02315.02
5.4.230.0020.02215.08
5.4.220.0050.02314.99
5.4.210.0050.02315.04
5.4.200.0020.02315.12
5.4.190.0030.02115.09
5.4.180.0030.02215.02
5.4.170.0080.02815.04
5.4.160.0080.01615.13
5.4.150.0040.02114.82
5.4.140.0100.01313.68
5.4.130.0050.01713.86
5.4.120.0050.02013.64
5.4.110.0020.02913.73
5.4.100.0070.02413.67
5.4.90.0050.01913.58
5.4.80.0020.02413.71
5.4.70.0020.02213.69
5.4.60.0000.02313.79
5.4.50.0030.02213.69
5.4.40.0030.01813.59
5.4.30.0020.02213.74
5.4.20.0040.02013.64
5.4.10.0070.01813.75
5.4.00.0000.02313.31
5.3.290.0030.04112.63
5.3.280.0050.01812.58
5.3.270.0070.01912.58
5.3.260.0040.02212.54
5.3.250.0010.02012.60
5.3.240.0000.02312.56
5.3.230.0020.02212.59
5.3.220.0000.02812.55
5.3.210.0050.02012.57
5.3.200.0040.02012.57
5.3.190.0020.02312.45
5.3.180.0020.02612.58
5.3.170.0050.02012.64
5.3.160.0070.01812.70
5.3.150.0020.02112.67
5.3.140.0030.01812.57
5.3.130.0020.02212.56
5.3.120.0000.02312.61
5.3.110.0040.02012.60
5.3.100.0050.02012.34
5.3.90.0060.01712.48
5.3.80.0030.01812.19
5.3.70.0050.01712.19
5.3.60.0000.02712.24
5.3.50.0030.01812.26
5.3.40.0070.01712.33
5.3.30.0050.02612.26
5.3.20.0030.04011.96
5.3.10.0050.03511.97
5.3.00.0020.03512.01
5.2.170.0030.01510.39
5.2.160.0020.03410.46
5.2.150.0030.01510.37
5.2.140.0050.01510.39
5.2.130.0050.03310.28
5.2.120.0030.03210.34
5.2.110.0050.03210.29
5.2.100.0030.02210.23
5.2.90.0030.01810.31
5.2.80.0050.01510.25
5.2.70.0050.01710.21
5.2.60.0030.02610.30
5.2.50.0030.02810.30
5.2.40.0030.01810.10
5.2.30.0030.02010.15
5.2.20.0040.0239.98
5.2.10.0030.03110.03
5.2.00.0020.0309.99
5.1.60.0030.0269.48
5.1.50.0010.0189.49
5.1.40.0020.0159.49
5.1.30.0020.0169.69
5.1.20.0060.0189.79
5.1.10.0040.0309.53
5.1.00.0050.0209.46
5.0.50.0050.0139.01
5.0.40.0010.0149.01
5.0.30.0000.0219.01
5.0.20.0030.0239.01
5.0.10.0010.0149.01
5.0.00.0050.0209.01
4.4.90.0040.0199.01
4.4.80.0050.0189.01
4.4.70.0040.0179.01
4.4.60.0020.0189.01
4.4.50.0000.0179.01
4.4.40.0030.0139.01
4.4.30.0030.0089.01
4.4.20.0000.0139.01
4.4.10.0010.0139.01
4.4.00.0000.0339.01
4.3.110.0000.0119.01
4.3.100.0050.0089.01
4.3.90.0020.0159.01
4.3.80.0030.0149.01
4.3.70.0050.0159.01
4.3.60.0000.0189.01
4.3.50.0030.0119.01
4.3.40.0020.0279.01
4.3.30.0040.0109.01
4.3.20.0000.0159.01
4.3.10.0020.0139.01
4.3.00.0020.0189.01

preferences:
49.5 ms | 401 KiB | 5 Q