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.40.0160.00618.70
8.3.30.0140.00718.59
8.3.20.0090.00618.77
8.3.10.0030.00618.95
8.3.00.0030.00519.38
8.2.170.0070.00722.96
8.2.160.0040.01118.95
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00019.66
8.2.110.0070.00322.25
8.2.100.0090.00317.91
8.2.90.0060.00319.23
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0000.01018.04
8.2.40.0040.00419.48
8.2.30.0040.00417.71
8.2.20.0000.01117.67
8.2.10.0000.00717.67
8.2.00.0040.00417.75
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0040.00422.10
8.1.230.0110.00019.01
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0000.01118.10
8.1.170.0050.00317.62
8.1.160.0070.00019.02
8.1.150.0050.00218.50
8.1.140.0040.00717.31
8.1.130.0000.00717.31
8.1.120.0070.00017.38
8.1.110.0080.00017.37
8.1.100.0040.00417.38
8.1.90.0000.00717.40
8.1.80.0000.00717.39
8.1.70.0040.00417.40
8.1.60.0030.00617.56
8.1.50.0080.00017.45
8.1.40.0060.00317.48
8.1.30.0040.00417.62
8.1.20.0100.00617.57
8.1.10.0040.00417.50
8.1.00.0000.00817.50
8.0.300.0030.00618.77
8.0.290.0000.00816.75
8.0.280.0040.00418.56
8.0.270.0040.00217.11
8.0.260.0070.00016.77
8.0.250.0000.01116.86
8.0.240.0000.00716.93
8.0.230.0000.00716.93
8.0.220.0040.00416.80
8.0.210.0030.00316.88
8.0.200.0040.00416.85
8.0.190.0040.00416.98
8.0.180.0040.00416.82
8.0.170.0080.00016.96
8.0.160.0030.00516.89
8.0.150.0030.00516.82
8.0.140.0040.00416.78
8.0.130.0000.00513.31
8.0.120.0030.00516.74
8.0.110.0030.00716.73
8.0.100.0040.00416.96
8.0.90.0050.00216.86
8.0.80.0030.01016.85
8.0.70.0000.00816.78
8.0.60.0040.00416.76
8.0.50.0030.00616.88
8.0.30.0070.01316.84
8.0.20.0070.01117.02
8.0.10.0080.00017.14
8.0.00.0080.01216.69
7.4.330.0000.00612.94
7.4.320.0030.00316.44
7.4.300.0000.00616.59
7.4.290.0080.00516.61
7.4.280.0050.00316.51
7.4.270.0000.00716.52
7.4.260.0030.00313.21
7.4.250.0060.00316.59
7.4.240.0100.00016.52
7.4.230.0040.00416.41
7.4.220.0100.00716.58
7.4.210.0060.01016.52
7.4.200.0030.00516.61
7.4.190.0030.00516.77
7.4.160.0060.00916.55
7.4.150.0090.00916.62
7.4.140.0130.00717.86
7.4.130.0060.01716.61
7.4.120.0090.01216.39
7.4.110.0140.00716.54
7.4.100.0110.00716.58
7.4.90.0130.01016.41
7.4.80.0070.00919.39
7.4.70.0110.00616.55
7.4.60.0080.00816.45
7.4.50.0030.00616.43
7.4.40.0030.01316.24
7.4.30.0050.01616.59
7.4.10.0060.01414.80
7.4.00.0100.00814.92
7.3.330.0060.00013.36
7.3.320.0030.00313.35
7.3.310.0070.00016.40
7.3.300.0040.00416.24
7.3.290.0050.01116.36
7.3.280.0060.01316.41
7.3.270.0100.00716.43
7.3.260.0110.01116.40
7.3.240.0100.01016.52
7.3.230.0030.01316.52
7.3.210.0080.00816.60
7.3.200.0130.00316.44
7.3.190.0100.01316.58
7.3.180.0060.01016.52
7.3.170.0100.00716.55
7.3.160.0110.00816.40
7.3.130.0060.01214.77
7.3.120.0050.01214.88
7.3.110.0080.00614.69
7.3.100.0100.00514.66
7.3.90.0050.01014.84
7.3.80.0030.00914.88
7.3.70.0040.00714.84
7.3.60.0070.00814.78
7.3.50.0090.00514.95
7.3.40.0040.00914.87
7.3.30.0060.00914.86
7.3.20.0070.00716.66
7.3.10.0080.00316.57
7.3.00.0030.01016.51
7.2.330.0180.00016.73
7.2.320.0030.01516.66
7.2.310.0090.00916.40
7.2.300.0180.00816.69
7.2.290.0140.00716.76
7.2.260.0060.01214.85
7.2.250.0040.01215.08
7.2.240.0090.00915.10
7.2.230.0060.00814.86
7.2.220.0080.00614.84
7.2.210.0030.01215.08
7.2.200.0050.00914.93
7.2.190.0100.00714.93
7.2.180.0100.00714.88
7.2.170.0080.00514.78
7.2.160.0060.00914.88
7.2.150.0140.00416.68
7.2.140.0070.00716.72
7.2.130.0030.01316.77
7.2.120.0030.01216.50
7.2.110.0110.00316.79
7.2.100.0040.01116.92
7.2.90.0070.00416.75
7.2.80.0030.00916.47
7.2.70.0050.00516.90
7.2.60.0390.00615.86
7.2.50.0030.00916.75
7.2.40.0060.00916.99
7.2.30.0040.01416.77
7.2.20.0100.00716.50
7.2.10.0000.01516.87
7.2.00.0010.01318.31
7.1.330.0050.01015.85
7.1.320.0030.01215.59
7.1.310.0020.01215.84
7.1.300.0060.00915.67
7.1.290.0070.00915.54
7.1.280.0040.01015.63
7.1.270.0060.00915.76
7.1.260.0030.00815.72
7.1.250.0000.00815.51
7.1.240.0030.00815.66
7.1.230.0030.01015.73
7.1.220.0110.00415.37
7.1.210.0030.01015.71
7.1.200.0040.00715.69
7.1.190.0070.00715.68
7.1.180.0070.00715.38
7.1.170.0060.00315.52
7.1.160.0090.00315.65
7.1.150.0060.01015.60
7.1.140.0060.00615.52
7.1.130.0040.01115.76
7.1.120.0080.00815.39
7.1.110.0070.00715.32
7.1.100.0070.00516.84
7.1.90.0070.00715.59
7.1.80.0030.01315.59
7.1.70.0040.00716.45
7.1.60.0090.01217.44
7.1.50.0060.00616.29
7.1.40.0030.01315.75
7.1.30.0100.00715.72
7.1.20.0060.00915.30
7.1.10.0000.01415.51
7.1.00.0030.02318.89
7.0.330.0070.00715.39
7.0.320.0070.00415.33
7.0.310.0000.01215.12
7.0.300.0090.00615.41
7.0.290.0000.00915.27
7.0.280.0030.00915.26
7.0.270.0080.00615.38
7.0.260.0000.01315.39
7.0.250.0000.01615.47
7.0.240.0030.00615.33
7.0.230.0060.00615.18
7.0.220.0040.00715.14
7.0.210.0030.00915.24
7.0.200.0040.00716.02
7.0.190.0030.01014.94
7.0.180.0120.00015.14
7.0.170.0110.00415.08
7.0.160.0110.00015.33
7.0.150.0000.01315.20
7.0.140.0090.03618.59
7.0.130.0000.01415.07
7.0.120.0050.03718.76
7.0.110.0060.00615.41
7.0.100.0090.00314.93
7.0.90.0030.00915.05
7.0.80.0060.00315.26
7.0.70.0070.00715.33
7.0.60.0030.05017.59
7.0.50.0050.04616.50
7.0.40.0130.03816.63
7.0.30.0170.02716.86
7.0.20.0180.02316.75
7.0.10.0080.02816.85
7.0.00.0090.03516.91
5.6.400.0000.01014.39
5.6.390.0120.00414.01
5.6.380.0050.00514.04
5.6.370.0040.00414.13
5.6.360.0000.01114.15
5.6.350.0030.01014.32
5.6.340.0130.00314.13
5.6.330.0060.00614.22
5.6.320.0040.00714.25
5.6.310.0090.00614.27
5.6.300.0100.00314.12
5.6.290.0040.00414.37
5.6.280.0020.04217.50
5.6.270.0040.01414.20
5.6.260.0000.00914.04
5.6.250.0100.00713.85
5.6.240.0090.00314.28
5.6.230.0120.00314.01
5.6.220.0090.00014.21
5.6.210.0030.04317.19
5.6.200.0080.03316.10
5.6.190.0110.04117.40
5.6.180.0260.03817.30
5.6.170.0150.04017.31
5.6.160.0130.03217.24
5.6.150.0000.02916.32
5.6.140.0000.03316.19
5.6.130.0090.02816.15
5.6.120.0050.04217.40
5.6.110.0070.04717.54
5.6.100.0050.02417.58
5.6.90.0030.02817.66
5.6.80.0080.04417.20
5.6.70.0070.00714.14
5.6.60.0110.00014.40
5.6.50.0000.01213.91
5.6.40.0060.00614.16
5.6.30.0030.00613.75
5.6.20.0090.00313.70
5.6.10.0030.00614.04
5.6.00.0130.00314.07
5.5.380.0040.00414.00
5.5.370.0000.01714.17
5.5.360.0030.00714.04
5.5.350.0170.04117.36
5.5.340.0070.04416.13
5.5.330.0090.04117.29
5.5.320.0230.03817.15
5.5.310.0120.03217.27
5.5.300.0090.02216.20
5.5.290.0050.02716.06
5.5.280.0020.02517.64
5.5.270.0060.04617.39
5.5.260.0050.04117.33
5.5.250.0040.02517.39
5.5.240.0110.04117.19
5.5.230.0060.00914.04
5.5.220.0060.00913.82
5.5.210.0090.00313.93
5.5.200.0070.00714.12
5.5.190.0060.00313.73
5.5.180.0080.00413.97
5.5.170.0030.00714.14
5.5.160.0030.01313.73
5.5.150.0040.00713.91
5.5.140.0040.00714.03
5.5.130.0070.00714.04
5.5.120.0050.00614.32
5.5.110.0040.00814.25
5.5.100.0090.00613.78
5.5.90.0110.00014.02
5.5.80.0110.00414.01
5.5.70.0060.00614.09
5.5.60.0030.01114.11
5.5.50.0040.00813.97
5.5.40.0060.00314.11
5.5.30.0000.00914.02
5.5.20.0000.01313.98
5.5.10.0060.00614.32
5.5.00.0000.01313.71
5.4.450.0050.04815.08
5.4.440.0070.03815.06
5.4.430.0070.04015.02
5.4.420.0080.02315.11
5.4.410.0070.04015.15
5.4.400.0020.03314.96
5.4.390.0030.02514.91
5.4.380.0020.03414.98
5.4.370.0100.03314.89
5.4.360.0000.02614.84
5.4.350.0110.03315.00
5.4.340.0100.03214.82
5.4.330.0080.00410.69
5.4.320.0090.04014.90
5.4.310.0050.02914.97
5.4.300.0060.03814.70
5.4.290.0050.02815.17
5.4.280.0050.04214.93
5.4.270.0070.01915.00
5.4.260.0050.02615.09
5.4.250.0080.01714.99
5.4.240.0050.03715.06
5.4.230.0130.01614.85
5.4.220.0070.04215.09
5.4.210.0070.02214.95
5.4.200.0070.03714.98
5.4.190.0030.03715.04
5.4.180.0050.03014.94
5.4.170.0060.02014.96
5.4.160.0020.03014.99
5.4.150.0060.02814.83
5.4.140.0080.02313.44
5.4.130.0070.01713.58
5.4.120.0030.02013.59
5.4.110.0050.02213.55
5.4.100.0070.02013.59
5.4.90.0060.02113.60
5.4.80.0020.02613.57
5.4.70.0030.03313.54
5.4.60.0050.04013.48
5.4.50.0080.03413.71
5.4.40.0080.02813.66
5.4.30.0030.02213.65
5.4.20.0070.01913.66
5.4.10.0080.03713.61
5.4.00.0050.02513.25
5.3.290.0000.03912.56
5.3.280.0060.01812.47
5.3.270.0010.02612.53
5.3.260.0080.03512.58
5.3.250.0080.01812.61
5.3.240.0050.02012.48
5.3.230.0030.02312.54
5.3.220.0030.04112.62
5.3.210.0030.02712.56
5.3.200.0090.02712.55
5.3.190.0050.02412.44
5.3.180.0050.02412.64
5.3.170.0070.02012.45
5.3.160.0050.02812.54
5.3.150.0080.03312.59
5.3.140.0030.02012.44
5.3.130.0050.02612.59
5.3.120.0030.02112.48
5.3.110.0030.02512.60
5.3.100.0070.03612.32
5.3.90.0050.02712.40
5.3.80.0060.01812.30
5.3.70.0070.02212.26
5.3.60.0030.03312.20
5.3.50.0100.02912.25
5.3.40.0110.03612.21
5.3.30.0020.02312.28
5.3.20.0040.02012.03
5.3.10.0070.01512.06
5.3.00.0030.02011.99
5.2.170.0030.06311.12
5.2.160.0000.04311.18
5.2.150.0130.02711.07
5.2.140.0000.03011.16
5.2.130.0000.03011.18
5.2.120.0000.03011.07
5.2.110.0030.02711.14
5.2.100.0100.02011.11
5.2.90.0030.03310.99
5.2.80.0030.03010.98
5.2.70.0000.03011.06
5.2.60.0070.02311.06
5.2.50.0030.02711.03
5.2.40.0000.03011.14
5.2.30.0070.02310.98
5.2.20.0000.03011.12
5.2.10.0030.03711.02
5.2.00.0100.05010.87
5.1.60.0030.03010.04
5.1.50.0070.0239.90
5.1.40.0000.03010.13
5.1.30.0030.02710.41
5.1.20.0130.02310.39
5.1.10.0000.02710.07
5.1.00.0030.02310.06
5.0.50.0030.0208.52
5.0.40.0000.0208.45
5.0.30.0000.0308.29
5.0.20.0000.0208.29
5.0.10.0000.0208.29
5.0.00.0000.0338.29
4.4.90.0000.0178.29
4.4.80.0030.0138.29
4.4.70.0000.0278.29
4.4.60.0030.0208.29
4.4.50.0000.0178.29
4.4.40.0000.0338.29
4.4.30.0000.0208.29
4.4.20.0000.0178.29
4.4.10.0000.0178.29
4.4.00.0030.0278.29
4.3.110.0030.0138.29
4.3.100.0000.0138.29
4.3.90.0000.0178.29
4.3.80.0000.0278.29
4.3.70.0070.0138.29
4.3.60.0000.0178.29
4.3.50.0000.0178.29
4.3.40.0000.0238.29
4.3.30.0030.0178.29
4.3.20.0000.0178.29
4.3.10.0000.0178.29
4.3.00.0000.0138.29

preferences:
65.5 ms | 400 KiB | 5 Q